#2

n = int(eval(input()))

cnts = 0

while(cnts**2 <= n):

    cnts += 1



print(((cnts-1)**2))
#2

n = int(eval(input()))

num = 1



a = int(n**(0.5))



        

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

# 2
n = int(eval(input()))
num = 1
a = int(n ** (0.5))
print((a**2))

-cnts = 0 -while cnts**2 <= n: -    cnts += 1 -print(((cnts - 1) ** 2)) +num = 1 +a = int(n ** (0.5)) +print((a**2))