B = list(map(int, input().split())) expected = list(range(1, 11)) diff = set(B) ^ set(expected) print(str(list(diff)[0]) + '\n')