Bs = set(map(int, input().split(' '))) print((set(range(1, 11)) - Bs).pop())