N = int(eval(input()))

k = 0



for i in range(N+2):

    if (i**2 <= N):

        k = i**2

    else:

        print(k)

        break
N = int(eval(input()))

print((int((N**0.5//1)**2)))
N = int(eval(input()))
k = 0
for i in range(N + 2):
    if i**2 <= N:
        k = i**2
    else:
        print(k)
        break

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

-k = 0 -for i in range(N + 2): -    if i**2 <= N: -        k = i**2 -    else: -        print(k) -        break +print((int((N**0.5 // 1) ** 2)))