"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ').map(v=>parseInt(v,10));
   let num = Math.sqrt(xs[0]);
   let ans = Math.floor(num);
   console.log(Math.pow(ans,2));
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));


