fun main(args: Array<String>) {
    val N = readLine()!!.toInt()

    for (i in N downTo 1) {
        val sqrt = Math.sqrt(i.toDouble())
        if (sqrt.toInt().toDouble() == sqrt) {
            println(i)
            return
        }

    }
}

