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;
double pi = 2 * acos(0.0);
const long long int MOD = 1e9 + 7;
const long long int MAX = 1e18;
vector<long long int> fx = {1, -1, 0, 0}, fy = {0, 0, -1, 1};
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long int lcm(long long int a, long long int b) {
  return (a / gcd(a, b)) * b;
}
long long int power(long long int x, long long int y, long long int m) {
  long long int res = 1;
  x = x % m;
  while (y > 0) {
    if (y & 1) res = (res * x) % m;
    y = y >> 1;
    x = (x * x) % m;
  }
  return res % m;
}
long long int n, m;
void WetPitch() {
  cin >> n >> m;
  string s;
  s = to_string(m);
  reverse(s.begin(), s.end());
  m = stoll(s);
  cout << n + m << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int tst;
  tst = 1;
  while (tst--) {
    WetPitch();
  }
  return 0;
}