li =[]

for i in range(1000000):

    li.append(i**2)

N = int(eval(input()))

ans = []

for i in range(1000000):

    if li[i]<=N:

        ans.append(li[i])

print((max(ans)))
n = int(eval(input()))

a = 0

for i in range(n+1):

    if i*i <= n:

        a = i*i

    else:

        break

print(a)

li = []
for i in range(1000000):
    li.append(i**2)
N = int(eval(input()))
ans = []
for i in range(1000000):
    if li[i] <= N:
        ans.append(li[i])
print((max(ans)))

n = int(eval(input()))
a = 0
for i in range(n + 1):
    if i * i <= n:
        a = i * i
    else:
        break
print(a)

-li = [] -for i in range(1000000): -    li.append(i**2) -N = int(eval(input())) -ans = [] -for i in range(1000000): -    if li[i] <= N: -        ans.append(li[i]) -print((max(ans))) +n = int(eval(input())) +a = 0 +for i in range(n + 1): +    if i * i <= n: +        a = i * i +    else: +        break +print(a)