#include <iostream>
using namespace std;

// write your code here......
void swapx(int &p,int &q)
{
    int tmp;
    tmp=p;
    p=q;
    q=tmp;


}

int main() {

    int m, n;
    cin >> m;
    cin >> n;

    // write your code here......
    int &p=m;
    int &q=n;
    swapx(p, q);

    cout << m << " " << n << endl;

    return 0;
}