#include <bits/stdc++.h>
using namespace std;
long long a, b, n, ret;
long long retr(long long x) {
  long long t = 0;
  while (x > 0) {
    t = 10 * t + (x % 10);
    x /= 10;
  }
  return t;
}
int main() {
  int i;
  cin >> a >> b;
  ret = retr(b);
  ret += a;
  cout << ret;
}
