import java.util.Scanner;
interface ICompute{
public int computer(int n, int m);
}
class Add implements ICompute{
public int computer(int n, int m){
return n + m;
}
}
class Sub implements ICompute{
public int computer(int n, int m){
return n - m;
}
}
public class Main{
public static void main(String[] args) {
Add a = new Add();
Sub s = new Sub();
Scanner scan = new Scanner(System.in);
int number1 = scan.nextInt();
int number2 = scan.nextInt();
System.out.println(a.computer(number1,number2));
System.out.println(s.computer(number1,number2));
}
}