# Author - Shivam Kapoor
# This code is written in accordance of algorithm given in geeksforgeeks.
# Link - http://www.geeksforgeeks.org/array-rotation/

from fractions import gcd

# USELESS AS FUCK ALGORITHM OMFG

#Inputing Data
arr = input("Please input the array elements with spaces in between(ex - 1 2 3 ...): ").split()
elements = int(input("Please input the number of elements to be moved at a time: "))
gcd(len(arr),elements)
