#include <bits/stdc++.h>
int main() {
  int a, b;
  std::cin >> a >> b;
  int number = 0;
  do {
    number = number * 10 + b % 10;
    b /= 10;
  } while (b > 0);
  std::cout << a + number << std::endl;
}
