import math

n = int(eval(input()))

print((int(math.floor(n ** .5) ** 2)))
n = int(eval(input()))

ans = 1

for i in range(int(n ** .5) + 1):

  sq = i ** 2

  if sq <= n:

    ans = sq

print(ans)
import math

n = int(eval(input()))
print((int(math.floor(n**0.5) ** 2)))

n = int(eval(input()))
ans = 1
for i in range(int(n**0.5) + 1):
    sq = i**2
    if sq <= n:
        ans = sq
print(ans)

-import math - -print((int(math.floor(n**0.5) ** 2))) +ans = 1 +for i in range(int(n**0.5) + 1): +    sq = i**2 +    if sq <= n: +        ans = sq +print(ans)