"use strict"

function main(input) {
  input = ~~input
  for (let i = input; i > 0; i--) {
    if (Number.isInteger(Math.sqrt(i))) {
      console.log(i)
      return
    }
  }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"))