#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); } for(int i=0; i<5; i++){ if(i+1 != hA.at(i)) hB.at(hA.at(i)-1)=hA.at(i); } for(auto x:hB){ cout << x << " "; } return 0; }