function Main(input) {
  const lines = input.split(' ');
  const str = lines[0] + lines[1];
  const num = parseInt(str, 10);
  const sqrt = Math.sqrt(num);
  if (Number.isInteger(sqrt)) {
    console.log("Yes");
  } else {
    console.log("No")
  }
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));