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