fun main(args: Array<String>) {
    var (a, b) = readLine()!!.split(' ').map(String::toInt)
    var x = b
    var cnt = 0
    while(x != 0) {
        a *= 10
        x /= 10
    }

    x = a + b

    for(i in 1..x) {
        if(i * i == x) {
            x = -1
            break
        }
    }
    print(if(x == -1) "Yes" else "No")
}