import java.util.Scanner

import scala.collection.immutable
import scala.collection.mutable.ListBuffer

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val num1, num2 = sc.next
    val num = (num1 + num2).toInt
    val numRoot:Int = Math.sqrt(num).toInt

    if(num equals(numRoot*numRoot)) println("Yes") else println("No")

  }

}