#include <iostream>
using namespace std;
int main(){ int n, a[100],b[100],j,i,min,c,aux; cin>>n; for(i=1;i<=n;i++) {cin>>a[i]; b[i]=a[i]; }for(i=1;i<=n;i++) {min=a[i]; c=i; for(j=i;j<=n;j++) {if(a[j]<min) {min=a[j];c=j;}
} aux=a[i]; a[i]=a[c]; a[c]=aux; } for(i=1;i<=n;i++) for(j=1;j<=n;j++) if(a[i]==b[j]) cout<<"\n"<<j<<" ";
return 0;}