"use strict";
    
const main = arg => {
    const A = arg.split("\n")[0].split(" ")[0];
    const B = arg.split("\n")[0].split(" ")[1];
    
    const N = parseInt(A + B);
    for(let i=1; i<N; i++) {
        if(Math.pow(i, 2) === N) {
            console.log("Yes");
            return;
        } 
    }
    
    console.log("No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));