import scala.io.StdIn

object Main extends App {
   val n = StdIn.readLine().replace(" ","").toInt
   //println(n)
   val b = scala.math.floor(scala.math.sqrt(n))
   //println(b)
   
   println(if(n == b*b) "Yes" else "No")
}