import scala.io.StdIn._
import scala.math.pow
import java.util.Scanner

object Main extends App {

  val scanner = new Scanner(System.in)

  val a = scanner.next
  val b = scanner.next
  val c = (a+b).toInt
  val sqrt_c = Math.sqrt(c).toInt
  println(if(sqrt_c*sqrt_c==c.toInt)"Yes" else "No")


}
