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