import math while 1:print 2**math.frexp(input())[1]