l = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] a = int(input()) if a in l: for s in l[:l.index(a)]: print(s) else: for s in l: print(s)