#include <iostream>
using namespace std;

// write your code here......
void swap(int *a,int *b){
    int p=*a;
    *a=*b;
    *b=p;
}

int main() {

    int m, n;
    cin >> m;
    cin >> n;
    swap(&m,&n);
    // write your code here......
    

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

    return 0;
}