#include using namespace std; int main() { int A, B; cin >> A >> B; cout << ((B - A > 0) ? "YES" : "NO") << "\n"; cout << abs((A + 1) - B) << "\n"; }