local read = setmetatable({}, {__index = function(t, k) local a = {} for i=1,#k do table.insert(a, string.sub(k, i, i)) end local r = io.read local u = table.unpack return function() return r(u(a)) end end})
local N = read.n()
local t = {}
for i=1,N do
    local a = io.read("n")
    t[i] = {i, a}
end
table.sort(t, function(x,y) return x[2] < y[2] end)
local ans = {}
for i=1,N do
    ans[i] = t[i][1]
end
print(table.concat(ans, " "))
