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