b = input().split(' ') for i in range(1,11): if str(i) not in b: print(i)