local n = io.read("*n")
local t = {}
for i = 1, n do
  t[i] = {i, io.read("*n")}
end
table.sort(t, function(x, y) return x[2] < y[2] end)
local s = {}
for i = 1, n do s[i] = t[i][1] end
print(table.concat(s, " "))
