#include <bits/stdc++.h>
using namespace std;
int const MAXN = 2e5 + 10;
int n, m, T;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m;
  int t = 0;
  while (m) {
    t = 10 * t + m % 10;
    m /= 10;
  }
  cout << n + t;
  return 0;
}
