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