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