N = int(eval(input()))

nums = 0

for i in range(1, 100000):

    if i**2 <= N:

        nums = i

print((nums**2))
N = int(eval(input()))

print((int(N**(1/2))**2))
N = int(eval(input()))
nums = 0
for i in range(1, 100000):
    if i**2 <= N:
        nums = i
print((nums**2))

N = int(eval(input()))
print((int(N ** (1 / 2)) ** 2))

-nums = 0 -for i in range(1, 100000): -    if i**2 <= N: -        nums = i -print((nums**2)) +print((int(N ** (1 / 2)) ** 2))