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