function solve(input) {
  const num = input.split(" ").join("")
  const s = Math.sqrt(num)
  return s == Math.ceil(s) ? "Yes" : "No"
}
const input = require("fs").readFileSync("/dev/stdin", "utf8")
console.log(solve(input))
