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