#include <iostream>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
n = n + m;
m = n - m;
n = n - m;
cout << n << " " << m << endl;
return 0;
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a, b;
a = sc.nextInt();
b = sc.nextInt();
a = a^b;
b = a^b;
a = a^b;
System.out.println(a + " " + b);
}
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt();
n = n ^ m; m = n ^ m; n = n ^ m; System.out.print(n +" " +m); } }
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
n = n + m;
m = n - m;
n = n - m;
System.out.println(n+ " " + m);
}
}