#include <bits/stdc++.h>
using namespace std;
long long paw[30];
void pw() {
  paw[0] = 1;
  for (int i = 1; i < 20; i++) paw[i] = 10 * paw[i - 1];
}
long long rev(long long a) {
  long long ret = 0;
  vector<int> v;
  while (a > 0) {
    v.push_back(a % 10);
    a /= 10;
  }
  for (int i = 0; i < v.size(); i++) ret += (v[i] * paw[v.size() - i - 1]);
  return ret;
}
int main() {
  long long a1, a2;
  cin >> a1 >> a2;
  pw();
  cout << a1 + rev(a2) << endl;
  return 0;
}
