object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt

    val max = (0 to n).par.map(Math.pow(_, 2)).filter(_ <= n).max
    println(max.toInt)

  }
}
