#include<iostream>#define Max 5000usingnamespace std;intmain(){
string string1,string2;
cin>>string1>>string2;int temp1[Max]={0},temp2[Max]={0},m =0,r =0,j =0;for(int i =0;i < string1.length();i++){
temp1[i]= string1[string1.length()- i -1]-'0';}for(int i =0; i < string2.length(); i++){
temp2[i]= string2[string2.length()- i -1]-'0';}for(int k =0; k < Max;++k){
m = temp1[k]+ temp2[k]+ r;
temp1[k]= m %10;
r = m /10;}for( j = Max -1; j >=0; j--){if(temp1[j])break;}for(; j >=0; j--){
cout<<temp1[j];}return0;}