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