#include <bits/stdc++.h>
using namespace std;
int min(int a, int b) {
  if (a < b) return a;
  return b;
}
int Abs(int a) {
  if (a < 0)
    return -a;
  else
    return a;
}
double Abs(double a) {
  if (a < 0)
    return -a;
  else
    return a;
}
unsigned long long sqr(unsigned long long a) { return a * a; }
double sqr(double a) { return a * a; }
int main() {
  int a, b, c;
  cin >> a >> b;
  c = 0;
  while (b) {
    c = c * 10 + b % 10;
    b /= 10;
  }
  cout << a + c << endl;
  return 0;
}
