#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
using ll = long long;
const ll eps = 1e-8;
int main() {
  ll a, b;
  cin >> a >> b;
  ll k = 0;
  while (b > 0) {
    k *= 10;
    k += b % 10;
    b /= 10;
  }
  cout << a + k << endl;
  return 0;
}
