#2

n = int(eval(input()))

i = 1

f = 0

while i**2<=n :

    f = i**2

    i = i +1

print(f)

    
#2

n = int(eval(input()))

p = 0

for i in range(int(n**0.5)+1):

    if i**2<=n: p=i

print((p**2))        
# 2
n = int(eval(input()))
i = 1
f = 0
while i**2 <= n:
    f = i**2
    i = i + 1
print(f)

# 2
n = int(eval(input()))
p = 0
for i in range(int(n**0.5) + 1):
    if i**2 <= n:
        p = i
print((p**2))

-i = 1 -f = 0 -while i**2 <= n: -    f = i**2 -    i = i + 1 -print(f) +p = 0 +for i in range(int(n**0.5) + 1): +    if i**2 <= n: +        p = i +print((p**2))