package main import ( "fmt" "math" ) func main() { var x int _, _ = fmt.Scan(&x) for y := 1; y <= x; y++ { z := math.Sqrt(float64(x * y)) if z == math.Floor(z) { fmt.Println(y) break } y++ } }