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