import java.math.BigInteger;
import java.util.Scanner;

/**
 * HJ57 高精度整数加法 - 中等
 */
public class HJ057 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            //输入两个数
            String s1 = sc.next();
            String s2 = sc.next();
            //将字符串转成大整数
            BigInteger a = new BigInteger(s1);
            BigInteger b = new BigInteger(s2);
            //大整数相加
            System.out.println(a.add(b));
        }
        sc.close();
    }
}