#include <iostream>
using namespace std;
// write your code here......
void swap(int &m,int &n){
int t=m;
m=n;
n=t;
}
int main() {
int m, n;
cin >> m;
cin >> n;
// write your code here......
swap(m,n);
cout << m << " " << n << endl;
return 0;
}