package HackerRank;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class SixtyTwo {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc = new Scanner(System.in);
// Read two big integers
BigInteger a = new BigInteger(sc.next());
BigInteger b = new BigInteger(sc.next());
// Print their sum
System.out.println(a.add(b));
// Print their product
System.out.println(a.multiply(b));
sc.close();
}
}