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