#include <bits/stdc++.h>
using namespace std;
int temp1;
string temp2;
int answer;
int main() {
  cin >> temp1 >> temp2;
  answer = temp1;
  for (int i = 0, j = 1; i < temp2.size(); i++, j *= 10) {
    answer += ((int)temp2[i] - (int)'0') * j;
  }
  cout << answer;
  return 0;
}
