const input = require("fs").readFileSync("/dev/stdin", "utf8").trim();
const number = parseInt(input.replace(' ', ''), 10)
const square = Math.sqrt(number)
console.log(square === parseInt(square, 10) ? "YES" : "No");