fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u32 = s.trim().parse().unwrap(); for a in (1..(n as f64).floor() as u32).rev() { if n % (a * a) == 0 { println!("{a} {}", n / a / a); break; } } }