N = int(eval(input()))

sq = [i ** 2 for i in range(10 ** 5) if i ** 2 <= N]

print((sq[-1]))
N = int(eval(input()))

for i in range(10 ** 5):

    if i ** 2 <= N:

        continue

    else:

        print(((i - 1) ** 2))

        break
N = int(eval(input()))
sq = [i**2 for i in range(10**5) if i ** 2 <= N]
print((sq[-1]))

N = int(eval(input()))
for i in range(10**5):
    if i**2 <= N:
        continue
    else:
        print(((i - 1) ** 2))
        break

-sq = [i**2 for i in range(10**5) if i ** 2 <= N] -print((sq[-1])) +for i in range(10**5): +    if i**2 <= N: +        continue +    else: +        print(((i - 1) ** 2)) +        break