using namespace std;

// write your code here......
void swap(int *p, int *q);
void swapp(int &a, int &b);

int main() {

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

    // write your code here......
//     swap(m,n); // 指针变量
    swapp(m,n);  //引用变量

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

    return 0;
}
void swap(int *p, int *q)
{
    int temp = *p;
    *p = *q;
    *q = temp;
}
void swapp(int &a, int &b)
{
    int temp = a;
    a = b;
    b = temp;
}