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