N = int(eval(input()))

ans = 1

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

  if i**2 > N:

    break

  ans = i**2

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

print((int(n**0.5)**2))

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

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

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