#include <bits/stdc++.h>
int main() {
  long long int n, a, r = 0, b, sum;
  scanf("%I64d %I64d", &b, &n);
  while (n) {
    a = n % 10;
    r = r * 10 + a;
    n = n / 10;
  }
  sum = r + b;
  printf("%I64d\n", sum);
  return 0;
}
