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