A = list(map(int, input().split())) S = list(range(1, 11)) i = list(set(S) - set(A)) print(i[0])