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