input=list(map(int,input().split())) for i in range(input): if i!= input[i]: print(i)