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