object Main extends App {
    val input = readLine
    val a = input.split(" ")(0)
    val b = input.split(" ")(1)
    val num = (a + b).toInt
    val sqrt_double = Math.sqrt(num)
    val sqrt_int = sqrt_double.toInt
    val res = if(sqrt_int * sqrt_int - num == 0){"Yes"}else{"No"}
    println(res)
}
