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;
int main() {
  string s, s1;
  cin >> s >> s1;
  if (s.length() < s1.length()) {
    while (s.length() < s1.length()) s = '0' + s;
  }
  if (s.length() > s1.length()) {
    while (s.length() > s1.length()) s1 = s1 + '0';
  }
  long long x = 0;
  int n = s.length();
  for (int i = 0; i < s.length(); i++) {
    x = x * 10 + int(s[i]) - int('0') + int(s1[n - 1 - i]) - int('0');
  }
  cout << x;
  return 0;
}