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