# arr = [1,6,2,5,3]
# m = int(input())%len(arr)
# print(m)
# for i in range(len(arr)//2):
#     arr[i],arr[(len(arr)-1)-i] = arr[(len(arr)-1)-i],arr[i]
# print(arr)
# arr = arr[m:]+arr[:m]
# print(arr)


