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