#include <iostream>
using namespace std;

// write your code here......
int a(int& m,int& n){
    int temp = m;
    m = n;
    n = temp;
    
    return 0;
}

int main() {

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

    // write your code here......
    a(m,n);

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

    return 0;
}