#include #include #include #include using namespace std; template int maxReturn(T a, T b) {if (a > b) {return a;} else {return b;}} template int minReturn(T a, T b) {if (a < b) {return a;} else {return b;}} int main(void){ int A,B; cin >> A >> B; if (A < B) { cout << "YES" << endl << 0 << endl; } else { cout << "NO" << endl << (A + 1) - B << endl; } }