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