#pragma GCC optimize("O3") #include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int A,B; cin >> A >> B; A+=1; if(A>=B) { cout << "YES" << '\n'; } else { cout << "NO" << '\n'; } cout << abs(A-B) << '\n'; return 0; }