user_num = int(input())
while user_num >= 1:
user_num = user_num / 2 # We operate on the value first, before printing it
print(user_num)