#include<iostream>
#include<string>
#include<vector>
int main(){
	std::string a,b;
	std::cin>>a>>b;
	std::string ans;
	if(a.size()<10&&b.size()<10){
		int A=0;
		int B=0;
		for(int i=a.size()-1;i>=0;i--)A+=a[i]-'0';
		for(int i=b.size()-1;i>=0;i--)B+=b[i]-'0';
		std::cout<<A+B<<std::endl;
	}else{
		int kr=0;
		int m=a.size()<=b.size()?a.size():b.size();
		int M=a.size()>b.size()?a.size():b.size();
		for(int i=m-1;i>=0;i--){
			int c=a[M],d=b[m];
			if(c+d>10)kr=1;
			int e=c+d;
			if(kr==1)e-=10;
			ans.push_back(e);
			a.erase(a.back()),b.erase(b.back());
			m--,M--;
		}
		ans.append(a);
	}
	std::cout<<ans<<std::endl;
	return 0;
}