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