int main(){
int a,b;
cin>>a>>b;
if(a+b<180){
cout<<"YES"<<endl;
if(a==90||b==90||a+b==90)cout<<"YES"; else cout<<"NO";
}else cout<<"NO";
}
int main(){
int a,b;
cin>>a>>b;
if(a+b<180){
cout<<"YES"<<endl;
if(a==90||b==90||a+b==90)cout<<"YES"; else cout<<"NO";
}else cout<<"NO";
}