int main(){
int n,i,j,v[30],ord[30];
cin >> n;
for(i=0;i<n;i++){
cin >> v[i];
ord[i] = i;
}
int ok=1;
while(ok){
ok = 0;
for(i=0;i<n-1;i++){
if(v[i] > v[i+1]){
swap(v[i], v[i+1]);
swap(ord[i], ord[i+1]);
ok = 1;
}
}
}
for(i=0;i<n;i++)
cout << ord[i] << " ";
}