n = int(eval(input()))



for i in range(1, n+1):

    if i**2 <= n:

        ans = min(n, i**2)

    else:

        break



print(ans)

n = int(eval(input()))

print((int(n**.5)**2))

n = int(eval(input()))
for i in range(1, n + 1):
    if i**2 <= n:
        ans = min(n, i**2)
    else:
        break
print(ans)

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

-for i in range(1, n + 1): -    if i**2 <= n: -        ans = min(n, i**2) -    else: -        break -print(ans) +print((int(n**0.5) ** 2))