const main = () => {
  const ab = getParams()
      , a = ab[0]
      , b = ab[1]
      , s = a + b
      , n = Number(s)
  console.log(solve(n));
};

const getParams = () =>
  getStdin().split(' ');

const getStdin = () =>
  require('fs').readFileSync('/dev/stdin', 'utf8');

const solve = n => {
  const sqrtn = Math.sqrt(n);
  return sqrtn === Math.floor(sqrtn) ? 'Yes' : 'No';
}

main();
