function main (arg) {
  const n = arg.split(' ').join('')
  const s = String(Math.sqrt(n) * 10)
  
  console.log(s[s.length - 1] === "0" ? "Yes" : "No")
}

main(require('fs').readFileSync('/dev/stdin', 'utf-8'))