# 1242 修改数组
# 转移要想清楚,QAQ感觉状态转移学魔怔了QAQ
N = int(input())
li = list(map(int, input().split()))
h = []
for i in range(1100000):
h.append(i)
def find(x):
if x != h[x]:
h[x] = find(h[x])
return h[x]
for i in range(1, N + 1):
he = find(li[i - 1])
print(he, end = ' ')
h[he] = he + 1