#include #include using namespace std; typedef long long int ll; int main(){ ll a,b; cin >> a >> b; if(a>=b){ cout << "NO" << endl; cout << a+1-b << endl; } else{ cout << "YES" << endl; cout << 0 << endl; } }