#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  while (cin >> a >> b) {
    int c = 0;
    int d = b;
    while (d) {
      c *= 10;
      c += d % 10;
      d /= 10;
    }
    cout << a + c << endl;
  }
  return 0;
}
