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