#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  queue<int> Q;
  while (b) {
    Q.push(b % 10);
    b /= 10;
  }
  b = 0;
  while (!Q.empty()) {
    b = b * 10 + Q.front();
    Q.pop();
  }
  cout << a + b << endl;
  return 0;
}
