2025-07-04 16:38:53 +09:00

7 lines
125 B
Python

from collections import deque
q = deque(range(1,int(input())+1))
while len(q)!=1:
q.popleft()
q.rotate(-1)
print(*q)