N = int( eval(input()) )



ans = 0

for i in range( int(N**0.5)+1 ):

    ans = max( ans, i*i )



print( ans )
N = int( eval(input()) )



print(( int(N**0.5)**2 ))
N = int(eval(input()))
ans = 0
for i in range(int(N**0.5) + 1):
    ans = max(ans, i * i)
print(ans)

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

-ans = 0 -for i in range(int(N**0.5) + 1): -    ans = max(ans, i * i) -print(ans) +print((int(N**0.5) ** 2))