#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b;
  cin >> a >> b;
  stringstream ss;
  ss << b;
  string str;
  str = ss.str();
  reverse((str).begin(), (str).end());
  stringstream ss1;
  ss1 << str;
  ss1 >> b;
  cout << a + b << endl;
}
