#include <iostream>
using namespace std;

int main() {

    int a = 0;
    int b = 0;
    cin >> a;
    cin >> b;

    //write your code here.......
    //1、中间变量
    /*
    int temp=a;
    a=b;
    b=temp;
    */
    //2、异或运算
    /*
    a=a^b;
    b=a^b;
    a=a^b;
    */
    //3、加减法
    a=a+b;
    b=a-b;
    a=a-b;

    cout << a << " " << b << endl;
    
    return 0;
}