#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  string b;
  cin >> a >> b;
  int b1 = 0;
  int mask = 1;
  for (int i = 0; i < b.length(); i++) {
    b1 += (b[i] - 48) * mask;
    mask *= 10;
  }
  cout << a + b1;
  return 0;
}
