7 lines
125 B
Python
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) |