#include #include #include #include using namespace std; int main() { // stack container declaration stack mystack1; stack mystack2; vectori; vectorj; int n,k,a; cin>>n; for(k=0;k>a; mystack1.push(a); } for(k=0;k>a; mystack2.push(a); } // using swap() function to swap elements of stacks mystack1.swap(mystack2); // printing the first stack cout<<""; while (!mystack1.empty()) { cout<