object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a, b = sc.next()
  val n = s"$a$b".toInt
  var i = 1
  while (i * i <= n) {
    i += 1
  }
  i -= 1
  println(if (i*i == n) "Yes" else "No")
}
