#include <bits/stdc++.h>
using namespace std;
int num[11];
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  int cur = 0;
  while (b) {
    num[cur++] = b % 10;
    b /= 10;
  }
  for (int i = 0; i < cur; i++) {
    b = b * 10 + num[i];
  }
  printf("%d\n", a + b);
  return 0;
}
