fun main() { val builder = StringBuilder() val (n, z) = readInputLine().split(" ").map { it.toInt() } var zTmp = 1 repeat(n) { zTmp *= z } for (x in 1..100) { var xTmp = 1 repeat(n) { xTmp *= x if (xTmp >= zTmp) { println("No") return } } for (y in 1..100) { var yTmp = 1 repeat(n) { yTmp *= y if (xTmp + yTmp > zTmp) { return@repeat } } if (xTmp + yTmp == zTmp) { println("Yes") return } } } print(builder.toString()) } fun readInputLine(): String { return readLine()!! }