fun main(args:Array) { val (A, B) = readLine()!!.split(" ").map { it.toInt() } listOf(A - B, -1).max().let { when { it == -1 -> Pair("Yes", Math.abs(A+1-B)) else -> Pair("No", Math.abs(A+1-B)) }.let { println("${it.first}\n${it.second}") } } }