fun solve(n:Int): Boolean {
    for (k in 1..n) {
        if (k*k==n)
            return true
        if (k*k>n)
            break
    }
    return false
}

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

    val ans = if (solve(n)) "Yes" else "No"
    println(ans)
}