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