#include <bits/stdc++.h>
using namespace std;
int main() {
  long long sum, carry = 0;
  string a, b, c, temp, w;
  cin >> a >> b;
  reverse(b.begin(), b.end());
  long long u = stoi(a);
  long long k = stoi(b);
  cout << u + k << endl;
  return 0;
}
