function main(input) {
  var In = input.split(' ');
  var str = In[0] + In[1];
  var num = parseInt(str, 10);
  var sqrt = Math.sqrt(num);
  
  if(Number.isInteger(sqrt)) {
    console.log('Yes');
  } else {
    console.log('No');
  }
  
}

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