N=int(eval(input()))

ans=0

for i in range(int(N**0.5)+1):

    if i**2 <=N:

        ans=i**2

        

print(ans)
n = int(eval(input()))

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

n = int(eval(input()))
print((int(n**0.5) ** 2))

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