fun main(arr:Array<String>) {
    println(getAns(readLine()!!.toLong()))
}

fun getAns(target:Long):Long {
    var ans = 0L
    for(i in (0..target)) {
        if(i*i>target) {
            break
        }
        ans = i*i
    }
    return ans
}