#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string A, B;
  cin >> A >> B;
  reverse(B.begin(), B.end());
  while (A.size() != B.size()) {
    if (A.size() < B.size())
      A = "0" + A;
    else
      B = "0" + B;
  }
  A = "0" + A;
  B = "0" + B;
  int carry = 0;
  string R;
  for (int i = A.size() - 1; i >= 0; --i) {
    carry += (A[i] - '0') + (B[i] - '0');
    R.push_back((carry % 10) + '0');
    carry /= 10;
  }
  while (R.back() == '0') R.pop_back();
  if (R.empty()) R = "0";
  reverse(R.begin(), R.end());
  cout << R;
  return 0;
}
