object Main extends App {
  import scala.io.StdIn.readLine
  import scala.math.sqrt
  import scala.math.floor

	val state = readLine.split(" ")
  	val num = (state(0)+ "" +state(1)).toInt
  	if(sqrt(num) == floor(sqrt(num)) ){println("Yes")}
  	else println("No")

}