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