import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str1 = scan.nextLine();
        String str2 = scan.nextLine();
        int ml = Math.max(str1.length(), str2.length());
        while (str1.length() != ml) {
            str1 = "0" + str1;
        }
        while (str2.length() != ml) {
            str2 = "0" + str2;
        }
        char[] chrs1 = str1.toCharArray();
        char[] chrs2 = str2.toCharArray();
        int carryBit = 0;
        StringBuffer ans = new StringBuffer("");
        for (int i = ml - 1; i > -1; i--) {
            char chr1 = chrs1[i];
            char chr2 = chrs2[i];
            int tmp = Integer.valueOf(chr1 + "") + Integer.valueOf(chr2 + "") + carryBit;
            ans.append(tmp % 10);
            carryBit = tmp / 10;
        }
        if (carryBit == 1) {
            ans.append(1);
        }
        ans.reverse();
        System.out.println(ans);
    }
}