B = {int(i) for i in input().split()} ans = set(range(1, 11)) ans.difference_update(B) print(ans.pop())