import scala.math.sqrt

object Main extends App {

  val sc = new java.util.Scanner(System.in)
  val a = sc.next()
  val b = sc.next()
  val num = (a + b).toInt
  if(sqrt(num).toInt * sqrt(num).toInt == num) {
    println("Yes")
  } else {
    println("No" )
  }
}
