#include using namespace std; int main(){ vector hA(5); vector hB(5); for(int i=0; i<5; i++){ cin >> hA.at(i); } for(int i=0; i<5; i++){ cin >> hB.at(i); } vector hANS(5); for(int i=0; i<5; i++){ hANS.at(i)=hA.at(hB.at(i)-1); } for(auto x:hB){ cout << x << " "; } return 0; }