#include <bits/stdc++.h>
int main() {
  long long int a, b, r = 0;
  scanf("%lld%lld", &a, &b);
  while (b != 0) {
    r = r * 10;
    r = r + b % 10;
    b = b / 10;
  }
  long long int s = a + r;
  printf("%lld", s);
  return 0;
}
