b = set(map(int,input().split())) s = {1,2,3,4,5,6,7,8,9,10} print(list(s-b)[0])