public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String x = sc.nextLine();
String y = sc.nextLine();
char[] a = x.toCharArray();
char[] b = y.toCharArray();
if(a[0]=='0'&&b[0]=='0') {
System.out.print(0);
System.exit(0);
}
for (int i = 0, j = a.length - 1; i < j; i++, j--) {
char temp = a;
a = a[j];
a[j] = temp;
}
for (int i = 0, j = b.length - 1; i < j; i++, j--) {
char temp = b;
b = b[j];
b[j] = temp;
}
int lena = a.length;
int lenb = b.length;
int len = Math.max(lena, lenb);
int[] sum = new int[len + 1];
for (int i = 0; i < len + 1; i++) {
int sum1 = i < lena ? (a - '0') : 0;
int sum2 = i < lenb ? (b - '0') : 0;
sum = sum1 + sum2;
}
for (int i = 0; i < sum.length; i++) {
if (sum >= 10) {
sum[i + 1] += 1;
sum %= 10;
}
}
boolean ifFlag =true;
for (int i = sum.length-1; i>=0; i--) {
if (sum==0&&ifFlag){
continue;
}else {
ifFlag=false;
System.out.print(sum);
}
}
}