n=int(eval(input()))

i=1

while i**2<=n:

    ans=i**2

    i+=1

print(ans)
print((int(int(eval(input()))**.5)**2))

#
n = int(eval(input()))
i = 1
while i**2 <= n:
    ans = i**2
    i += 1
print(ans)

print((int(int(eval(input())) ** 0.5) ** 2))
#

-n = int(eval(input())) -i = 1 -while i**2 <= n: -    ans = i**2 -    i += 1 -print(ans) +print((int(int(eval(input())) ** 0.5) ** 2)) +#