B = list(map(int, input().split())) num = list(range(1,11)) for i in num: if not i in B: print(i)