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>
#pragma comment(linker, "/STACK:250000000")
using namespace std;
const double PI = acos(-1.0);
vector<string> split(string str, string sep) {
  char *S = new char[str.size() + 2];
  char *Sep = new char[sep.size() + 2];
  strcpy(S, str.c_str());
  strcpy(Sep, sep.c_str());
  vector<string> res;
  for (char *curr = strtok(S, Sep); curr; curr = strtok(0, Sep))
    res.push_back(curr);
  delete[] S;
  delete[] Sep;
  return res;
}
template <class T>
T SQR(const T &a) {
  return a * a;
}
int main() {
  long long a, b;
  cin >> a >> b;
  char A[11], B[11];
  sprintf(B, "%9I64d", b);
  reverse(B, B + 9);
  sscanf(B, "%9I64d", &b);
  cout << a + b << endl;
  return 0;
}