#include <bits/stdc++.h>
using namespace std;
template <class T>
void print(vector<T> const &v) {
  ostringstream os;
  for (int i = 0; i < v.size(); ++i) {
    if (i) os << ' ';
    os << v[i];
  }
  cout << os.str() << endl;
}
template <class T>
void print(T const &x) {
  ostringstream os;
  os << x;
  cout << os.str() << endl;
}
template <class T>
void print(vector<vector<T> > const &v) {
  ostringstream os;
  for (int i = 0; i < v.size(); ++i) {
    for (int j = 0; j < v[i].size(); ++j) {
      if (j) os << ' ';
      os << v[i][j];
    }
    os << endl;
  }
  cout << os.str() << endl;
}
long rev(long n) {
  long ans = 0;
  while (n > 0) {
    ans = (ans * 10) + (n % 10);
    n /= 10;
  }
  return ans;
}
int main() {
  int i, j, n;
  long a1, a2, ans;
  cin >> a1 >> a2;
  ans = a1 + rev(a2);
  cout << ans << endl;
  return 0;
}
