#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long a;
  string b;
  cin >> a >> b;
  reverse(b.begin(), b.end());
  cout << a + stoi(b) << endl;
  return 0;
}
