package main import( "bufio" "fmt" "os" "strings" "strconv" ) func main(){ scanner := bufio.NewScanner(os.Stdin) scanner.Scan() number := strings.Split(scanner.Text()," ") A,_ := strconv.Atoi(number[0]) A = A + 1 B,_ := strconv.Atoi(number[1]) if A == B{ fmt.Println("YES") fmt.Println(A-B) }else if A > B{ fmt.Println("NO") fmt.Println(A-B) }else if B > A{ fmt.Println("NO") fmt.Println(B-A) } }