object Main extends App{
    val Array(a,b) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
    val target = (a.toString + b.toString).toInt
    val upper_limit = (target/2.0).ceil.toInt
    if(0 < (1 to upper_limit).map(e => e*e).count(_ == target)) println("Yes") else println("No")
}