import sys

a=[3, 45, 9, 8, 12, 89, 103, 42, 54, 79]
b=int(input())
for i in a:
    if i == b:
        break
    else:
        print(i)