package main import ( "fmt" ) func main() { var m int fmt.Scan(&m) d := divisor(m) if len(d) == 0 { d = append(d, 1) } fmt.Println(d[0], m/d[0]) } func divisor(n int) []int { res := make([]int, 0) for i := 2; i*i <= n; i++ { if n%i == 0 { res = append(res, i) return res } } return res }