#include <bits/stdc++.h>
using namespace std;
int fastpow(int a, int b) {
  int ans = 1;
  for (; b; b >>= 1, a = a * a)
    if (b & 1) ans = ans * a;
  return ans;
}
int num;
int main() {
  int n;
  scanf("%d", &n);
  string a;
  cin >> a;
  for (int i = 0; i < a.length(); i++) n += (a[i] - '0') * fastpow(10, i);
  printf("%d", n);
  return 0;
}
