#include <iostream>
using namespace std;

// write your code here......


int main() {

    int m, n;
    cin >> m;
    cin >> n;
    swap(m,n);

    // write your code here......
    

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

    return 0;
}