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>
using namespace std;
long long rev(long long n) {
  int dig[10], d = 0, i;
  while (n != 0) {
    dig[d] = n % 10;
    d++;
    n = n / 10;
  }
  long long pow_ten = 1;
  long long ret = 0;
  for (i = d - 1; i >= 0; i--) {
    ret += dig[i] * pow_ten;
    pow_ten *= 10;
  }
  return ret;
}
int main() {
  long long a, b;
  cin >> a >> b;
  b = rev(b);
  cout << a + b;
  return 0;
}