#include <bits/stdc++.h>
int n, m, t[15], z = 1;
int main() {
  scanf("%d%d", &n, &m);
  while (m) t[++t[0]] = m % 10, m /= 10;
  for (int i = t[0]; i >= 1; i--, z *= 10) n += t[i] * z;
  printf("%d\n", n);
}
