fun main(args: Array<String>) {
    abc077b()
}

fun abc077b() {
    val n = readLine()!!.toInt()

    var max = 1
    var sqrt = 0
    while (true) {
        sqrt++
        if (sqrt * sqrt > n) break
        max = sqrt * sqrt
    }

    println(max)
}
