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