a2=int(raw_input())
i=0
while True:
	if a2 < (2**i):
		print(2**i)
		break
	i=i+1

5937f94e49abf714550292afe685c09c4578f99d
<mask token>

<mask token>
while True:
    if a2 < 2 ** i:
        print(2 ** i)
        break
    i = i + 1

a2 = int(raw_input())
i = 0
while True:
    if a2 < 2 ** i:
        print(2 ** i)
        break
    i = i + 1

a2=int(raw_input())
i=0
while True:
	if a2 < (2**i):
		print(2**i)
		break
	i=i+1
