Click Here to go back to the homepage.

Lost Lineup Solution:


line, i = ['1'] * int(input()), 2
for num in list(map(int, input().split())): line[1 + num], i = str(i), i + 1
print( " ".join(line) )