N = list(map(int, input().split())) if 10 not in N: print("10") for i in range(1,9): if i not in N: print(i)