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