B=[] for i in range(0,9): B.append(input()) print sum(range(1,11))-sum(B)