import numpy as np

n = int(eval(input()))

for i in range(n, 0, -1):

    if np.sqrt(i) % 1 == 0:

        print(i)

        break
n = int(eval(input()))

a = 1

while a ** 2 <= n:

    a += 1

print(((a - 1) ** 2))
import numpy as np

n = int(eval(input()))
for i in range(n, 0, -1):
    if np.sqrt(i) % 1 == 0:
        print(i)
        break

n = int(eval(input()))
a = 1
while a**2 <= n:
    a += 1
print(((a - 1) ** 2))

-import numpy as np - -for i in range(n, 0, -1): -    if np.sqrt(i) % 1 == 0: -        print(i) -        break +a = 1 +while a**2 <= n: +    a += 1 +print(((a - 1) ** 2))