# 077 B

import numpy as np



N = int(eval(input()))

print((int(np.sqrt(N)) * int(np.sqrt(N))))
# 077 B

import numpy as np



N = int(eval(input()))

n=int(np.sqrt(N))

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

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

# 077 B
import numpy as np

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

-print((int(np.sqrt(N)) * int(np.sqrt(N)))) +n = int(np.sqrt(N)) +print((n**2))