#include<iostream>
#include<cstring>
using namespace std;
void swap(int &x, int &y)
{
int t = 0;
t = x;
x = y;
y = t;
}
int main()
{
int x,y;
cin >> x >> y;
swap(x,y);
cout << x << ' ' << y << endl;
return 0;
}