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