process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
 var ab = lines[0].split(' ');
 var n = Number(ab[0] + ab[1]);
 var tmp = Math.sqrt(n);
 if(tmp % 1 == 0){
   console.log("Yes");
 }else{
   console.log("No");
 }
});