#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int res = 0;
  while (b) {
    res = res * 10 + b % 10;
    b = b / 10;
  }
  res = res + a;
  cout << res << endl;
}
