import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n, m = sc.next()
    val num = (n + m).toInt

    println(if (math.sqrt(num) % 1 == 0) {
      "Yes"
    } else {
      "No"
    })

  }
}
