object Main extends App {
  val s = readLine()
  val number = s.split(" ").mkString.toInt
  val r = Math.sqrt(number.toDouble)
  if (Math.pow(r.toInt, 2).toInt == number)
    println("Yes")
  else
    println("No")
}