inp = input() def findMissingNo(s): ls = list(map(int, s.split())) for i,b in enumerate(ls,1): if i != b: return i print(findMissingNo(inp))