lst = [i for i in range(1, 11)] B = [int(i) for i in input().strip().split(' ')] print(list(set(lst) - set(B))[0])