#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
  while (scanf("%d%d", &a, &b) != EOF) {
    c = 0;
    int num = 0;
    int x = b;
    while (x) {
      x /= 10;
      num++;
    }
    num--;
    while (b) {
      c += (b % 10) * pow(10.0, num);
      num--;
      b /= 10;
    }
    cout << c + a << endl;
  }
  return 0;
}
