import math



n = int(eval(input()))



while (math.sqrt(n)-float(math.floor(math.sqrt(n))))!=0.0:

    n = n-1



print(n)
import math



i = int(eval(input()))



r = math.sqrt(i)



ir = int(r)



print((ir*ir))



import math

n = int(eval(input()))
while (math.sqrt(n) - float(math.floor(math.sqrt(n)))) != 0.0:
    n = n - 1
print(n)

import math

i = int(eval(input()))
r = math.sqrt(i)
ir = int(r)
print((ir * ir))

-n = int(eval(input())) -while (math.sqrt(n) - float(math.floor(math.sqrt(n)))) != 0.0: -    n = n - 1 -print(n) +i = int(eval(input())) +r = math.sqrt(i) +ir = int(r) +print((ir * ir))