import java.lang.Math.*
import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val a = sc.nextInt()
    val b = sc.nextInt()

    val c = (a.toString() + b.toString()).toInt()
    if (pow(floor(sqrt(c.toDouble())), 2.0) == c.toDouble()) {
        println("Yes")
    } else {
        println("No")
    }
}
