process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = '';
process.stdin.on('data', function(chunk) {
    lines += chunk;
});
process.stdin.on('end', function() {
    main(lines.split(/\r?\n/));
});
function main(inputs){
  var nums = inputs[0].split(" ");
  var num = nums.join("");

  var check = false;
  for(var i=0; i<=100; i++){
    if(i * i == num){
      console.log("Yes");
      check = true;
    }
  }

  if(!check){
    console.log("No");
  }

}