fun main(args: Array<String>) {
    abc086b()
}

fun abc086b() {
    val ab = readLine()!!.replace(Regex(" "), "")

    val sqrt = Math.sqrt(ab.toDouble()).toInt()

    val answer = if (sqrt * sqrt == ab.toInt()) "Yes" else "No"

    println(answer)
}
