import io.StdIn.{readInt, readLine}

object Main extends App {
  val n = readInt

  var prev = 0
  var base = 1
  var square = base*base
  while(square <= n) {
    prev = square
    base += 1
    square = base*base
  }

  val result = prev
  println(result)

}