// editor2
#include<iostream>
using namespace std;
int main(){
    int a,b,temp;
    cin>>a>>B;
    temp=a;
    a=b;
    b=temp;
    cout<<a<<endl;
    cout<<b<<endl;
}