function main(input) {
	input = input.split(" ");
	x = input[0];
	a = input[1];
	String(Math.sqrt(Number(String(x)+a))).indexOf('.') != -1?console.log('No'):console.log('Yes');
}
 
main(require("fs").readFileSync("/dev/stdin","utf8"));