include<bits/stdc++.h>

using namespace std;
int main(){
int x,y;
cin>>x>>y;
swap(x,y);
cout<<x<<endl;
cout<<y<<endl;
return 0;
}