#include int zettai(int a,int b); int main(void) { int a,b; scanf("%d %d",&a,&b); int a_mirror=a; a_mirror++; //printf("%d %d",a_mirror,b); if(a_mirror==b) { printf("YES\n"); } else { printf("NO\n"); } printf("%d\n",zettai(a_mirror,b)); return 0; } int zettai(int a,int b) { if(a>=b) return (a-b); else return (b-a); }