#include <bits/stdc++.h>
int main() {
  int a;
  char s[100];
  scanf("%d%s", &a, s);
  int b = 0;
  for (int i = strlen(s) - 1; i >= 0; i--) b = b * 10 + s[i] - '0';
  printf("%d\n", a + b);
  scanf(" ");
}
