line = [int(i) for i in input().split()] for i in range(1,11,1): if i not in line: print(i)