n = int(eval(input()))

ans = [-1000] + [0] * n

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

  j = i

  while (j % 2 == 0):

    ans[i] += 1

    j /= 2

print((ans.index(max(ans))))

n = int(eval(input()))

A = [2 ** i for i in range(1, 7)]

ans = 1

for a in A:

  if (n < a):

    break

  ans = a

print(ans)

n = int(eval(input()))
ans = [-1000] + [0] * n
for i in range(1, n + 1):
    j = i
    while j % 2 == 0:
        ans[i] += 1
        j /= 2
print((ans.index(max(ans))))

n = int(eval(input()))
A = [2**i for i in range(1, 7)]
ans = 1
for a in A:
    if n < a:
        break
    ans = a
print(ans)

-ans = [-1000] + [0] * n -for i in range(1, n + 1): -    j = i -    while j % 2 == 0: -        ans[i] += 1 -        j /= 2 -print((ans.index(max(ans)))) +A = [2**i for i in range(1, 7)] +ans = 1 +for a in A: +    if n < a: +        break +    ans = a +print(ans)