#include #include ; int main() { int a, b; scanf("%d%d", &a, &b); a++; if (a <= b) puts("YES"); else puts("NO"); printf("%d\n", abs(a - b)); }