import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     * 计算两个数之和
     * @param s string字符串 表示第一个整数
     * @param t string字符串 表示第二个整数
     * @return string字符串
     */
    public String solve (String s, String t) {
        // write code here
        int sLen=s.length();
        int tLen=t.length();
        int l=0,c=0;
        StringBuilder sb=new StringBuilder();
        while(l<sLen||l<tLen){
            int c1=l>=sLen?0:s.charAt(sLen-l-1)-'0';
            int c2=l>=tLen?0:t.charAt(tLen-1-l)-'0';
            int n=c1+c2;
            n+=c;
            c=0;
            if(n>9){
                c++;
                n-=10;
            }
            sb.append(n);
            l++;
        }
        if(c>0){
            sb.append(c);
        }
        return sb.reverse().toString();
    }
}