print(list(set(range(1, 11)) - set(list(map(int, input().split()))))[0])