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