#2

n = int(eval(input()))

s = 1

p = 1

while (True):

    p = s * s

    s = s + 1

    if (s*s > n) :

        break

    

print(p)
#2



n = int(eval(input()))

a=1

raw=0



while raw <= n:

    raw=a*a

    a=a+1



print(((a-2)*(a-2)))
# 2
n = int(eval(input()))
s = 1
p = 1
while True:
    p = s * s
    s = s + 1
    if s * s > n:
        break
print(p)

# 2
n = int(eval(input()))
a = 1
raw = 0
while raw <= n:
    raw = a * a
    a = a + 1
print(((a - 2) * (a - 2)))

-s = 1 -p = 1 -while True: -    p = s * s -    s = s + 1 -    if s * s > n: -        break -print(p) +a = 1 +raw = 0 +while raw <= n: +    raw = a * a +    a = a + 1 +print(((a - 2) * (a - 2)))