#include <iostream>
using namespace std;
int n,ar[10000+1],p;
int main(){
cin>>n;
for (int i=1;i<=n*n;i++){
cin>>p;
ar[p]=p;
}
for (int i=1;i<=n*n;i++){cout<<ar[i]<<' ';}
}
CiNpbmNsdWRlIDxpb3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBuLGFyWzEwMDAwKzFdLHA7CgppbnQgbWFpbigpewogICAgY2luPj5uOwogICAgZm9yIChpbnQgaT0xO2k8PW4qbjtpKyspewogICAgICAgIGNpbj4+cDsKICAgICAgICBhcltwXT1wOwogICAgfQogICAgZm9yIChpbnQgaT0xO2k8PW4qbjtpKyspe2NvdXQ8PGFyW2ldPDwnICc7fQp9