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