N=int(eval(input()))

n=1



while(2*n<=N):

    n*=2



print(n)
n = int(eval(input()))

count = 0

max = 0

for i in range(1, n+1):

    while(i%2 ==0):

        i = i/2

        count +=1

    if(max < count):

        max = count

    count = 0

print((2**max))
N = int(eval(input()))
n = 1
while 2 * n <= N:
    n *= 2
print(n)

n = int(eval(input()))
count = 0
max = 0
for i in range(1, n + 1):
    while i % 2 == 0:
        i = i / 2
        count += 1
    if max < count:
        max = count
    count = 0
print((2**max))

-N = int(eval(input())) -n = 1 -while 2 * n <= N: -    n *= 2 -print(n) +n = int(eval(input())) +count = 0 +max = 0 +for i in range(1, n + 1): +    while i % 2 == 0: +        i = i / 2 +        count += 1 +    if max < count: +        max = count +    count = 0 +print((2**max))