import scala.io.{StdIn => in}

object Main extends App {
  val x = in.readInt
  val ans = (1 to math.sqrt(x).toInt + 1)./:(1)( (acc, i) => {
    val y = i * i
    if(y <= x) y else acc
  })
  println(ans)
}