import java.util.Scanner;
Scanner in = new Scanner(System.in);
String bin1 = in.nextLine();
int num1 = Integer.parseInt(bin1, 2);
String bin2 = in.nextLine();
int num2 = Integer.parseInt(bin2, 2);
System.out.println(Integer.toBinaryString(num1+num2));