#include int main() { int a, b; std::cin >> a, b; if (a <= b) { std::cout << "NO" << std::endl; std::cout << b - a + 1 << std::endl; return 0; } std::cout << "YES" << std::endl << a - b - 1 << std::endl; }