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