#include <bits/stdc++.h>
using namespace std;
bool isPerfectSquare(long long int const& n) {
  long long int lol = sqrt(n);
  if (lol * lol == n)
    return true;
  else
    return false;
}
bool isPrime(long long int const& n) {
  if (n <= 1) return false;
  if (n <= 3) return true;
  if (n % 2 == 0 || n % 3 == 0) return false;
  for (long long int i = 5; i * i <= n; i = i + 6) {
    if (n % i == 0 || n % (i + 2) == 0) return false;
  }
  return true;
}
long long int stoii(string const& second) {
  long long int num = 0;
  if (second.size() == 0) {
    return 0;
  }
  for (long long int i = 0; i < second.size(); i++) {
    num = num + (second[i] - '0') * pow(10, second.size() - 1 - i);
  }
  return num;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int a, b;
  cin >> a >> b;
  long long int c = 0;
  while (b) {
    c = c * 10;
    c = c + (b % 10);
    b = b / 10;
  }
  cout << a + c << '\n';
  return 0;
}
