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