#include <bits/stdc++.h>
using namespace std;

string addString(string a,string b)
{
	string res;
	int carry=0;
	int i=a.size()-1;
	int j=b.size()-1;
	while(i>=0&&j>=0)
	{
		int num=a[i]-'0'+b[j]-'0'+carry;
		res+=num%10+'0';
		carry=num/10;
		i--;
		j--;
	}
	while(i>=0)
	{
		int num=a[i]-'0'+carry;
		res+=num%10+'0';
		carry=num/10;
		i--;
	}
	while(j>=0)
	{
		int num=b[j]-'0'+carry;
		res+=num%10+'0';
		carry=num/10;
		j--;
	}
	if(carry==1) res+='1';
	reverse(res.begin(),res.end());
	return res;
}
int main()
{
	string a,b;
	while(cin>>a>>b)
	{
		string res=addString(a,b);
		string res1=res;
		reverse(res1.begin(),res1.end());
		reverse(a.begin(),a.end());
		reverse(b.begin(),b.end());
		if(res1==addString(a,b)) cout<<res<<endl;
		else cout<<"NO"<<endl;
	}
	return 0;
}