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