function main(input) {
	input = input.split(" ");
	x = input[0];
	a = input[1];
	b =String(Math.sqrt(Number(String(x)+a)));
  	if(b.indexOf('.') === -1){
      console.log('Yes')
    }else{
      console.log('No')
    }

  
}
 
main(require("fs").readFileSync("/dev/stdin","utf8"));