#include <iostream>
using namespace std;

// write your code here......
void Swap1(int *p,int *q){
    int temp;
    temp=*p;
    *p=*q;
    *q=temp;
}
int main() {
    int m, n;
    cin >> m;
    cin >> n;
    // write your code here......
    Swap1(&m,&n);
    cout << m << " " << n << endl;
    return 0;
}