# 077 B

import numpy as np



N = int(eval(input()))

n=int(np.sqrt(N))

print((n**2))
N = int(eval(input()))

n = int(N**0.5) 

print((n**2))
# 077 B
import numpy as np

N = int(eval(input()))
n = int(np.sqrt(N))
print((n**2))

N = int(eval(input()))
n = int(N**0.5)
print((n**2))

-# 077 B -import numpy as np - -n = int(np.sqrt(N)) +n = int(N**0.5)