#include <bits/stdc++.h>
using namespace std;
int num[10] = {1,      10,      100,      1000,      10000,
               100000, 1000000, 10000000, 100000000, 1000000000};
int main() {
  int ia, ib;
  string sb;
  while (cin >> ia >> sb) {
    ib = 0;
    int len = sb.length();
    for (int i = 0; i < len; i++) {
      ib += (sb[i] - '0') * num[i];
    }
    cout << ia + ib << endl;
  }
  return 0;
}
