function main(input) {
    input = input.split(" ").map(e=>String(e))
    const a = input[0]
    const b= input[1]
    const checkSqrtFunc = (a,b)=>{
        const tmp = Number(a+b)
        const result = Number.isInteger(Math.sqrt(tmp)) ?true : false 
        return result
    }
    const flagSqrt = checkSqrtFunc(a,b)
    const mes = flagSqrt ? "Yes" : "No"
    console.log(mes);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
