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

// https://atcoder.jp/contests/abc086/tasks/abc086_b
fun main(args:Array<String>) {
    val scn = Scanner(System.`in`)
    val in1 = scn.next()
    val in2 = scn.next()

    val value = sqrt((in1 + in2).toDouble()).toInt()
    val inval = value * value

    if(inval == (in1+in2).toInt()) {
        println("Yes")
    }else{
        println("No")
    }
}
