object Main extends App{

    val ab = scala.io.StdIn.readLine.replaceAll("\\s","").toInt

    import math._

    def check(ab: Int):Boolean = {
        for (i<- 1 to ceil(sqrt(ab)).toInt) {
          if (pow(i,2) == ab) return true
        }
        return false
    }

    if (check(ab)) println("Yes") else println("No")
}