#include <iostream>
#include <cstring>
using namespace std;

int main(){
  int j;
  char s1[102] = {0};
  char tmp[102] = {0};
  char s2[102] = {0};
  char ans[102];
  int  kuri = 0 ;
  memset(ans,0,sizeof(ans));
  cin >> s1 >> s2;
  if(strlen(s1) < strlen(s2)){
    strcpy(tmp,s1);
    strcpy(s1,s2);
    strcpy(s2,tmp);
  }
  for(int i=0,j=strlen(s1)-1;i<=j;i++,j--) swap(s1[i],s1[j]);
  for(int i=0,j=strlen(s2)-1;i<=j;i++,j--) swap(s2[i],s2[j]);
  for(int i=0;i<strlen(s1);i++){
    if((s1[i] + (s2[i]%'0') + kuri) > '9'){
      ans[i] = (s1[i] + (s2[i]%'0') + kuri)-10;
      kuri = 1;
    }
    else {
      ans[i] = (s1[i] + (s2[i]%'0') + kuri);
      kuri = 0;
    }
    if(i == strlen(s1)-1 && kuri == 1) ans[i+1] = '1';
  }
  for(int i=strlen(ans)-1;i>=0;i--) cout << ans[i];
  cout << endl;
}