#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, i;
int digits(int n) {
  int d = 0;
  while (n) {
    n /= 10;
    d++;
  }
  return d;
}
int main() {
  cin >> a >> b;
  c = a;
  d = digits(b);
  for (i = 1; b; i++) {
    c += (b % 10) * (int)floor(pow((double)10, (double)d - i));
    b /= 10;
  }
  cout << c;
}
