package main import ( "fmt" ) func main() { var m int fmt.Scan(&m) d := divisor(m) if len(d)==0 { d[0] = 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) if i != n/i { res = append(res, n/i) } } } return res }