#include <bits/stdc++.h>
int main() {
  int i, ans = 0, len,
         shi[10] = {1,      10,      100,      1000,      10000,
                    100000, 1000000, 10000000, 100000000, 1000000000},
         aa, bb;
  char a[21], b[21];
  for (i = 0; i < 21; i++) a[i] = b[i] = '0';
  scanf("%d%d", &aa, &bb);
  sprintf(a, "%d", aa);
  sprintf(b, "%d", bb);
  len = strlen(a) > strlen(b) ? strlen(a) : strlen(b);
  for (i = 20; 20 - i < strlen(a); i--) a[i] = a[strlen(a) - 21 + i];
  for (i = 20; 20 - i < strlen(b); i--) b[i] = b[strlen(b) - 21 + i];
  for (i = 0; i < strlen(a); i++) ans += (a[20 - i] - '0') * shi[i];
  for (i = 0; i < strlen(b); i++) ans += (b[21 - strlen(b) + i] - '0') * shi[i];
  printf("%d\n", ans);
  return 0;
}
