import java.util.Scanner
import scala.math._

object Main extends App {
  val sc = new Scanner(System.in)
  val a, b = sc.next

  val x = (a + b).toInt
  val y = floor(sqrt(x))
  val z = if (y * y == x) "Yes" else "No"
  println(z)
}
