#include #define INF 990000000 //20 using namespace std; int main() { int a,b; cin>>a>>b; if(b-a>=1){ cout << "YES\n"; cout << 0; }else{ cout << "NO\n"; cout << a-b+1; } }