#include <bits/stdc++.h>
using namespace std;
long long int rev(int a) {
  vector<int> vec;
  while (a / 10) {
    vec.push_back(a % 10);
    a /= 10;
  }
  vec.push_back(a % 10);
  reverse(vec.begin(), vec.end());
  int mul = 1;
  long long res = 0;
  for (int i = 0; i < vec.size(); ++i) {
    res += vec[i] * mul;
    mul *= 10;
  }
  return res;
}
int main() {
  long long x, y;
  cin >> x >> y;
  cout << x + rev(y);
  return 0;
}
