import java.util.Scanner;
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt();
//write your code here.......
// //方法一:使用第三变量 // int temp = a; // a = b; // b = temp;
//方法二:不使用第三变量
a = a+b;
b = a-b;
a = a-b;
//方法三:使用括号运算改变运算优先级顺序
// a = (a+b) - (b=a);
//方法四:使用位运算
// a = a^b; // b = a^b; // a = a^b;
System.out.println(a+" "+b);
}
}