L = list(map(int, input().split())) res = [False]*10 for l in L: res[l-1] = True for i, r in enumerate(res): if not r: print(i + 1)