#include #include using namespace std; int main() { int girl, boy; cin >> boy >> girl; if (boy+1 > girl) { cout << "NO" << endl; cout << boy - girl + 1 << endl; } else if (boy+1 <= girl) { cout << "YES" << endl; cout << girl - boy - 1 << endl; } }