Question and Answer from L4-M2
# Read number of soldiers
n = int(input())
# Formula to find the soldier between Abraham and Daryl (clockwise)
pos = (n - 2) % n + 1 # 1-indexed position
if pos == 2:
print("1")
else:
print(pos)