package main import( "fmt" ) func main(){ var A,B int fmt.Scan(&A,&B) A = A + 1 if A == B{ fmt.Println("YES") fmt.Println(A-B) }else if A < B{ fmt.Println("YES") fmt.Println(B-A) }else if A > B{ fmt.Println("NO") fmt.Println(A-B) } }