function main(input) {
  input=input.trim();
  const a = input.split(" ")[0];
  const b = input.split(" ")[1];
  var tsunagi=Number(a+b);
  if(Number.isInteger(Math.pow(tsunagi,0.5))==true){
    console.log("Yes");
  }else{
    console.log("No");
  }

}



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