Skip to content

Baekjoon 21756

1. Problem

문제 확인하기

2. Solution

n = int(input())
mylist = list(range(1, n+1))

while len(mylist) > 1:
    mylist = mylist[1::2]

print(mylist[0])