const main = input => {
  const number = parseInt(input.replace(' ', ''), 10)
  const square = Math.sqrt(number)
  if (square === parseInt(square, 10)) {
    console.log('Yes')
  } else {
    console.log('No')
  }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));