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