object Main extends App {
    val scanner = new java.util.Scanner(System.in)
    val n = scanner.next().toInt
    val maxSquareNum = (1 to 100000).map(x => x*x).filter(x => x <= n).max
    println(maxSquareNum)
}