n = int(eval(input()))

ma = 0

while (ma+1)**2 <= n:

    ma += 1

print((ma**2))
y = int(eval(input()))

p = (pow(y , 0.5))

print((pow(int(p) , 2)))
n = int(eval(input()))
ma = 0
while (ma + 1) ** 2 <= n:
    ma += 1
print((ma**2))

y = int(eval(input()))
p = pow(y, 0.5)
print((pow(int(p), 2)))

-n = int(eval(input())) -ma = 0 -while (ma + 1) ** 2 <= n: -    ma += 1 -print((ma**2)) +y = int(eval(input())) +p = pow(y, 0.5) +print((pow(int(p), 2)))