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