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