b = {int(x) for x in input().split()} print((set(range(1, 11)) - b).pop())