#include <bits/stdc++.h>
using namespace std;
void reverse(int a, int &b, int &p) {
  if (a < 10) {
    p = 1;
    b = a;
  } else {
    reverse(a / 10, b, p);
    p *= 10;
    b = a % 10 * p + b;
  }
}
int main() {
  int a1, a2;
  int b, p;
  cin >> a1 >> a2;
  reverse(a2, b, p);
  cout << a1 + b;
  return 0;
}
