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