import java.util.Scanner;
public class 反置数 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
System.out.println(f(f(n) + f(m)));
}
private static int f(int n) {
int k = 0;
int a[] = new int[1000];
while (n != 0) {
a[k] = n % 10;
n = n / 10;
k++;
}
int sum = 0;
for (int i = 0; i < k; i++)
sum = sum * 10 + a[i];
return sum;
}
}