function Main (I) {
  I = I.split("\n")[0].split(" ");
  I = parseInt(I[0] + I[1], 10);
  console.log(Math.pow(Math.floor(Math.sqrt(I, 2)), 2) == I ? "Yes" : "No");
}

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