Bs = list(map(int, input().split(' '))) i = 1 for B in Bs: if B != i: print(i) break i = i + 1