#include <iostream>
using namespace std;
int a, b;
int sum1, sum2;
int reverse(int x)
{
int res = 0;
while (x)
{
res = res * 10 + x % 10;
x /= 10;
}
return res;
}
int main()
{
while (cin >> a >> b)
{
sum1 = reverse(a+b);
sum2 = reverse(a) + reverse(b);
if (sum1 == sum2)
cout << a + b << endl;
else
cout << "NO" << endl;
}
return 0;
}