import java.math.BigInteger;
import java.util.Scanner;
public class A05大整数相加 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("输入第一个整数:");
String s1 = input.next();
System.out.print("输入第二个整数:");
String s2 = input.next();
input.close();
BigInteger b1 = new BigInteger(s1);//将字符串组建为大整数
BigInteger b2 = new BigInteger(s2);//将字符串组建为大整数
BigInteger b3 = b1.add(b2); //大整数相加
System.out.println(b3);
}
}