N = int(eval(input()))

k = 0

while 2**k<=N:

    k += 1

print((2**(k-1)))
N = int(eval(input()))

if N==1:

    print((1))

else:

    k = 1

    while 2**k<=N:

        k += 1

    print((2**(k-1)))
N = int(eval(input()))
k = 0
while 2**k <= N:
    k += 1
print((2 ** (k - 1)))

N = int(eval(input()))
if N == 1:
    print((1))
else:
    k = 1
    while 2**k <= N:
        k += 1
    print((2 ** (k - 1)))

-k = 0 -while 2**k <= N: -    k += 1 -print((2 ** (k - 1))) +if N == 1: +    print((1)) +else: +    k = 1 +    while 2**k <= N: +        k += 1 +    print((2 ** (k - 1)))