N = int(eval(input()))

num = 0

for i in range(1,100000000):

    if i*i> N:

        break

    else:

        num = i*i

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

num = int(N**(1/2))

print((num **2))
N = int(eval(input()))
num = 0
for i in range(1, 100000000):
    if i * i > N:
        break
    else:
        num = i * i
print(num)

N = int(eval(input()))
num = int(N ** (1 / 2))
print((num**2))

-num = 0 -for i in range(1, 100000000): -    if i * i > N: -        break -    else: -        num = i * i -print(num) +num = int(N ** (1 / 2)) +print((num**2))