function main(s) {
	n = Number(s.split("\n")[0]);
	for (var i = Math.ceil(Math.sqrt(n)); i > 0; i--) {
		if (i * i <= n) {console.log(i * i); return;}
	}
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));

