#include <bits/stdc++.h>
using namespace std;
const int maxn = 222222;
const int oo = 1000000000;
int main() {
  int x, y;
  cin >> x >> y;
  int t = 0;
  while (y != 0) {
    t = t * 10 + y % 10;
    y /= 10;
  }
  cout << x + t;
  return 0;
}
