#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  string bs;
  cin >> a >> bs;
  reverse(bs.begin(), bs.end());
  istringstream ss(bs);
  int b;
  ss >> b;
  cout << a + b << endl;
  return 0;
}
