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