#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  char s[100];
  while (cin >> a >> b) {
    sprintf(s, "%d", b);
    int l = strlen(s);
    reverse(s, s + l);
    sscanf(s, "%d", &b);
    cout << a + b << endl;
  }
}
