b = raw_input() bi =b.split(' ') B=[] for i in range(0,9): B.append(int(bi[i])) print sum(range(1,11))-sum(B)