#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; const double pi = 3.141592653589793238; int main() { int a, b; cin >> a >> b; if (a + 1 <= b) { cout << "YES" << endl; } else { cout << "NO" << endl; } if (a + 1 == b) { cout << 0 << endl; } else { cout << abs(a - b) + 1 << endl; } }