N=int(eval(input()))

ans=1

for i in range(1,N):

    if i**2<=N:

        ans=i**2

    else:

        break

print(ans)

n = int(eval(input()))

ans = 1

for i in range(1,n+1):

    if i **2 > n:

        ans = (i-1) ** 2

        break

print(ans)

N = int(eval(input()))
ans = 1
for i in range(1, N):
    if i**2 <= N:
        ans = i**2
    else:
        break
print(ans)

n = int(eval(input()))
ans = 1
for i in range(1, n + 1):
    if i**2 > n:
        ans = (i - 1) ** 2
        break
print(ans)

-N = int(eval(input())) +n = int(eval(input())) -for i in range(1, N): -    if i**2 <= N: -        ans = i**2 -    else: +for i in range(1, n + 1): +    if i**2 > n: +        ans = (i - 1) ** 2