#include <iostream>
using namespace std;
int main() {
int tab[1000000000];
int n;
int q;
cin>>q;
while(cin>>tab[n]){;
cout<<tab[q-1]<<" ";}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWludCB0YWJbMTAwMDAwMDAwMF07CglpbnQgbjsKCWludCBxOwoJCgljaW4+PnE7Cgl3aGlsZShjaW4+PnRhYltuXSl7OwoJY291dDw8dGFiW3EtMV08PCIgIjt9CgkKCXJldHVybiAwOwp9