X = int(eval(input()))

a = 1

while X >= a**2:

    a += 1

print((int((a-1)**2)))
X = int(eval(input()))

print((int((X**.5))**2))
X = int(eval(input()))
a = 1
while X >= a**2:
    a += 1
print((int((a - 1) ** 2)))

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

-a = 1 -while X >= a**2: -    a += 1 -print((int((a - 1) ** 2))) +print((int((X**0.5)) ** 2))