#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  string a, b;
  cin >> x >> b;
  string c(b.rbegin(), b.rend());
  istringstream iss(c);
  int y;
  iss >> y;
  cout << x + y << endl;
  return 0;
}
