Problem: <image>

Input

The input contains two integers a1, a2 (0 ≤ ai ≤ 32), separated by a single space.

Output

Output a single integer.

Examples

Input

1 1


Output

0


Input

3 7


Output

0


Input

13 10


Output

1

Solution (in CPP):

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