function main(input) {
  input=input.trim();
  const x = parseInt(input.split("\n")[0], 10);
  var i=0;
  while(i*i<=x){
    i++
  }
  console.log((i-1)*(i-1));
}


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