import kotlin.math.sqrt

fun solver(a: String, b: String): String {
    val num = (a + b).toInt()

    val value = sqrt(num.toDouble())

    return if (value - value.toInt().toDouble() == 0.0) {
        "Yes"
    } else {
        "No"
    }
}

fun main(args: Array<String>) {
    val (a, b) = readLine()!!.split(" ")

    //val (a, b) = Pair("1", "21")

    val result = solver(a = a, b = b)

    println(result)
}
