#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  while (b > 0) {
    s += (b % 10) + '0';
    b /= 10;
  }
  int as = 0;
  for (int i = 0; i < s.size(); ++i) {
    as *= 10;
    as += s[i] - '0';
  }
  cout << as + a << '\n';
}
