Great battle of manchester

Added: 2025-09-13 01:16:03

Question Image

Great battle of manchester

Answer

✏️ Edit
# 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)