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