fun grad(a:Int, b:Int):Int { return when { a == 0 && b == 0 -> 1 a == 0 -> 1 a%2 == 1 && b%2 == 1 -> 0 a%2 == 0 && b%2 == 0 -> grad(a-1, b/2) or grad(a/2, b-1) a%2 == 1 -> grad(a-1, b/2) b%2 == 1 -> grad(a/2, b-1) else -> 0 } } fun main(args:Array) { val (a, b) = readLine()!!.split(" ").map(String::toInt) when(grad(a, b)) { 1 -> "Yes" else -> "No" }.run(::println) }