package org.example.test.practice.third;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String a = br.readLine();
        String b = br.readLine();
        StringBuilder sb = new StringBuilder();
        int i = a.length() - 1;
        int j = b.length() - 1;
        int t = 0;
        while (i >= 0 || j >= 0) {
            int x = i < 0 ? 0 : (a.charAt(i) - '0');
            int y = j < 0 ? 0 : (b.charAt(j) - '0');
            int s = x + y + t;
            if (s >= 10) {
                t = s / 10;
                sb.append(s % 10);
            } else {
                t = 0;
                sb.append(s);
            }
            i--;
            j--;
        }
        if (t!=0){
            sb.append(t);
        }
        System.out.println(sb.reverse());
    }
}