a = int(eval(input()))

if a<=1:

  print((1))

elif a<=3:

  print((2))

elif a<=7:

  print((4))

elif a<=15:

  print((8))

elif a<=31:

  print((16))

elif a<=63:

  print((32))

else:

  print((64))

N = int(eval(input()))

a = 1



while a*2<=N:

  a*=2

  

print(a)

a = int(eval(input()))
if a <= 1:
    print((1))
elif a <= 3:
    print((2))
elif a <= 7:
    print((4))
elif a <= 15:
    print((8))
elif a <= 31:
    print((16))
elif a <= 63:
    print((32))
else:
    print((64))

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

-a = int(eval(input())) -if a <= 1: -    print((1)) -elif a <= 3: -    print((2)) -elif a <= 7: -    print((4)) -elif a <= 15: -    print((8)) -elif a <= 31: -    print((16)) -elif a <= 63: -    print((32)) -else: -    print((64)) +N = int(eval(input())) +a = 1 +while a * 2 <= N: +    a *= 2 +print(a)