function Main(input){
  	var input = input.split(" ");
	var a = input[0];
	var b = input[1];

    var c = a+""+b;
    if(Math.sqrt(c) == Math.floor(Math.sqrt(c))) {
      console.log("yes");
    }else{
      console.log("no");
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));