import java.io.*
import java.util.*

object Input {
    private var i = 0
    private var line = listOf<String>()

    fun next(): String = if (i < line.size) {
        line[i++]
    } else {
        line = readLine()?.split(" ") ?: throw Exception("EOF")
        i = 0
        next()
    }

    fun int() = next().toInt()

    fun long() = next().toLong()

    fun double() = next().toDouble()
}

object Out {
    private val buffer = mutableListOf<Any>()

    fun writeln(obj: Any) = writeSep(obj, "\n")

    fun writeSep(obj: Any, sep: String = " ") = write("$obj$sep")

    fun write(obj: Any) = buffer.add(obj)

    fun flush() {
        print(buffer.joinToString(""))
        buffer.clear()
    }
}

inline fun run(action: () -> Unit) {
    try {
        action()
    } finally {
        Out.flush()
    }
}

fun main(args: Array<String>) = run {
    val a = Input.next()
    val b = Input.next()

    val c = (a + b).toInt()

    for (i in 1..c) {
        if (i * i == c) {
            Out.writeln("Yes")
            return
        }
    }

    Out.writeln("No")
}