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