import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        System.out.println(new Main().add(a, b));
    }
    public String add(String a, String b){
        int c = 0;//进位,初始为0
        StringBuilder sb = new StringBuilder();
        for(int i = a.length() - 1, j = b.length() - 1;;--i, --j){
            if(i < 0 && j < 0) break;
            int t1 = (i >= 0)? a.charAt(i) - '0': 0;//较短串该位没数就当0
            int t2 = (j >= 0)? b.charAt(j) - '0': 0;
            sb.append((t1 + t2 + c)%2);//每一位都是两个对应的位再加进位%2
            c = (t1 + t2 + c)/2;//只要和大于等于2就进位1,更新进位
        }
        if(c == 1) sb.append("1");//最高位的进位检查
        return String.valueOf(sb.reverse());//最高位应该在最左边
    }
}