function Main(input){
	input = input.split("\n");
  var a = input[0].split(" ");
  var b = ("" + a[0] + "" +  a[1])*1;
  for(var i = 3; i < 317; i++){
  	if(i * i == b){
    	return "Yes";
    }
    if(i * i > b){
    	return "No";
    }
  }
  return "No";
}

console.log(Main(require("fs").readFileSync("/dev/stdin", "utf8")));
