#include <bits/stdc++.h>
using namespace std;
vector<int> x;
int main() {
  int x;
  string y, s;
  cin >> x;
  cin >> y;
  reverse(y.begin(), y.end());
  int l = 0;
  stringstream convert(y);
  convert >> l;
  cout << l + x;
}
