#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin>>a>>b;
if(b==0){
cout<<"NO"<<endl<<"YES";
return 0;
}
if(a>=0){
cout<<"NO"<<endl;
}else{
cout<<"YES"<<endl;
}
if(a%2==0){
cout<<"NO"<<endl;
}else{
cout<<"YES"<<endl;
}
return 0;
}