private fun readInts() = readLine()!!.split(" ").map { it.toInt() }

fun main(args: Array<String>) {
    val (a, b) = readInts()
  
    println(if ("$a$b".toInt() in (1..500).map { it * it }) "Yes" else "No")
}