function Main(input) {
  var inp = input.split(" ");
  var a = parseInt(inp[0] + inp[1]);
  var b = Math.sqrt(a);
  var result = null;
  if (b - b === 0) {
    result = 'Yes';
  } else {
    result = 'No';
  }
  console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));