#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b;
  int in;
  in = scanf("%lld %lld", &a, &b);
  long long b1 = 0;
  while (b) {
    b1 = b1 * 10 + (b % 10);
    b /= 10;
  }
  printf("%lld", a + b1);
  return 0;
}
