import math

N = int(eval(input()))

mx = 0

for i in range(math.ceil(math.sqrt(N))+1):

    if i**2 <= N and i**2 >= mx:

        mx = i**2

        

print(mx)


N = int(eval(input()))

sq = (int(N**(1/2))**2)

print(sq)
import math

N = int(eval(input()))
mx = 0
for i in range(math.ceil(math.sqrt(N)) + 1):
    if i**2 <= N and i**2 >= mx:
        mx = i**2
print(mx)

N = int(eval(input()))
sq = int(N ** (1 / 2)) ** 2
print(sq)

-import math - -mx = 0 -for i in range(math.ceil(math.sqrt(N)) + 1): -    if i**2 <= N and i**2 >= mx: -        mx = i**2 -print(mx) +sq = int(N ** (1 / 2)) ** 2 +print(sq)