import java.math.BigInteger;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
BigInteger a, b, c;
Scanner sc = new Scanner(System.in);
a = new BigInteger(sc.next());
b = new BigInteger(sc.next());
c = a.add(b);
System.out.println(c);
c = a.multiply(b);
System.out.println(c);
}
}
link: https://www.hackerrank.com/challenges/java-biginteger/problem