#include<iostream>
using namespace std;
void swap(int *pa,int *pb)
{
int temp;
temp=*pa;
*pa=*pb;
*pb=temp;
}
int main()
int a,b;
cin>>a>>b;
swap(&a,&b);
cout<<a<<" "<<b;
return 0;