"use strict";

const main = (arg) => {
  const input = arg.trim().split(" ");
  const strAnsewer = input[0] + input[1];
  const heiho = parseInt(strAnsewer);

  for (let i = 0; i < heiho; i++) {
    let answer = i * i;
    if (heiho === answer) {
      console.log("Yes");
      break;
    }
    if (heiho < answer) {
      console.log("No");
      break;
    }
  }
};
main(require("fs").readFileSync("/dev/stdin", "utf8"));
// main("12 10");
// https://atcoder.jp/contests/abc086/tasks/abc086_b
