l = list(map(int, input().split())) ans = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for li in l: ans.remove(li) print(ans[0])