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