#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a;
  string b;
  cin >> a >> b;
  int n = b.size();
  int y = 1;
  for (int i = 0; i < n; i++) {
    int m;
    char c = b[i];
    stringstream ss;
    ss << c;
    ss >> m;
    m *= y;
    y *= 10;
    a += m;
  }
  cout << a;
  return 0;
}
