#include <bits/stdc++.h>
const double eps = 1e-9;
const int int_inf = 2000000000;
const long long i64_inf = 1000000000000000000LL;
const double pi = acos(-1.0);
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int B = 0;
  while (b > 0) {
    B = B * 10 + b % 10;
    b /= 10;
  }
  cout << a + B << endl;
  return 0;
}
