#include "bits/stdc++.h"
using namespace std;
ifstream f ("schi.in");
ofstream g ("schi.out");
int n,aib[30002];
int ub (int x)
{
return (x&(-x));
}
void add(int x)
{
int i;
for (i=x;i<=n;i+=ub(i))
{
aib[i]++;
}
}
int sum (int x)
{
int i,s;
s=0;
for (i=x;i>=1;i-=ub(i))
{
s+=aib[i];
}
return s;
}
int v[30002],p[30002];
int main ()
{
int x,loc,l1,l2;
f>>n;
for (x=1;x<=n;x++)
{
f>>v[x];
}
for (x=n;x>=1;x--)
{
loc=v[x];l1=0;
while (loc!=l1)
{
l2=loc;
loc+=sum(loc)-sum(l1);
l1=l2;
}
p[loc]=x;
add(loc);
}
for (x=1;x<=n;x++)
g<<p[x]<<endl;
f.close ();
g.close ();
return 0;
}