B = [int(i) for i in input().split()] for i in range(1, 11): if(B.count(i) == 0): print(i)