import numpy as np

N=int(eval(input()))

print((2**int(np.log2(N))))
import math

N=int(eval(input()))

print((2**int(math.log2(N))))
import numpy as np

N = int(eval(input()))
print((2 ** int(np.log2(N))))

import math

N = int(eval(input()))
print((2 ** int(math.log2(N))))

-import numpy as np +import math -print((2 ** int(np.log2(N)))) +print((2 ** int(math.log2(N))))