#include <iostream>
using namespace std;

int main() {
    int a,b;
   while( cin>>a>>b){
    int s=a+b;
    if(s>99 || a <10 || b<10 || a>99 || b>99){cout<<"NO"<<endl;continue;}
    int s1=s%10*10+s/10;
    int a1=a%10*10+a/10;
    int b1=b%10*10+b/10;
    if(a1+b1==s1)cout<<s<<endl;
    else cout<<"NO"<<endl;
   };
    
}
// 64 位输出请用 printf("%lld")