num_l = list(map(int, input().split())) k = len(num_l) j = 0 for i in range(1, k + 1): if num_l[j] != i: print(i) break j += 1