import math

n=int(eval(input()))

if n==0:

    print((0))

    exit(0)

l1=[i*i for i in range(int(math.sqrt(n))+1)]

print((l1[-1]))
import math

n = int(eval(input()))



k = math.floor(math.sqrt(n))

print((k*k))
import math

n = int(eval(input()))
if n == 0:
    print((0))
    exit(0)
l1 = [i * i for i in range(int(math.sqrt(n)) + 1)]
print((l1[-1]))

import math

n = int(eval(input()))
k = math.floor(math.sqrt(n))
print((k * k))

-if n == 0: -    print((0)) -    exit(0) -l1 = [i * i for i in range(int(math.sqrt(n)) + 1)] -print((l1[-1])) +k = math.floor(math.sqrt(n)) +print((k * k))