import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val set = (1..400).map { it * it }
    val x = (sc.next() + sc.next()).toInt()
    println(if (set.contains(x)) "Yes" else "No")
}