<?php
  
$line = fgets(STDIN);
$tmp = explode(" ", $line);

$result = $tmp[0] . $tmp[1];

for ($i = 1; $i <= 100; $i++) {
	if ($i * $i === (int)$result) {
    	echo "Yes\n";
      	exit;
    }
}
echo "No\n";