number = int(input())
start = 1
while start <= number:
    print(start)
    start = 2 * start + 1

73c4554c5d8fefa9d50b71d823b7d6ae4c6cc571
<mask token>

<mask token>
while start <= number:
    print(start)
    start = 2 * start + 1

number = int(input())
start = 1
while start <= number:
    print(start)
    start = 2 * start + 1
