#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int reverseY = 0;
  while (y > 0) {
    reverseY = 10 * reverseY + (y % 10);
    y /= 10;
  }
  cout << x + reverseY << endl;
}
