#!/usr/bin/env python3

import math



N = int(eval(input()))

print((int(math.sqrt(N)) ** 2))

N = int(eval(input()))

print((int(N ** 0.5) ** 2))
#!/usr/bin/env python3
import math

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

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

-#!/usr/bin/env python3 -import math - -print((int(math.sqrt(N)) ** 2)) +print((int(N**0.5) ** 2))