#include <bits/stdc++.h>
using namespace std;
const long long maxn = 5e5;
vector<long long> k;
long long a, n, r = 0;
string s;
int main() {
  cin >> a >> s;
  for (int i = 0; i < s.size(); i++) {
    n += ((s[i] - '0') * pow(10, r));
    r++;
  }
  cout << n + a;
  return 0;
}
