import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val a = sc.next()
  val b = sc.next()

  println(abc086b(a, b))
}

private fun abc086b(a: String, b: String): String {
  val ab = (a + b).toInt()

  for (i in 1 .. 1000) {
    if (i * i == ab) return "Yes"
  }

  return "No"
}
