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