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