#include <bits/stdc++.h>
char a[20], b[20];
int x[20], y[20];
int main() {
  while (~scanf("%s %s", a, b)) {
    int len = strlen(a);
    memset(x, 0, sizeof(x));
    memset(y, 0, sizeof(y));
    int i;
    for (i = 0; i < len; i++) {
      x[len - 1 - i] = a[i] - 48;
    }
    len = strlen(b);
    for (i = 0; i < len; i++) {
      y[i] = b[i] - 48;
      x[i] += y[i];
    }
    for (i = 0; i < 18; i++) {
      x[i + 1] += x[i] / 10;
      x[i] %= 10;
    }
    for (i = 19; i > 0; i--)
      if (x[i]) break;
    for (i; i >= 0; i--) printf("%d", x[i]);
    puts("");
  }
  return 0;
}
