fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let mut n: usize = n.trim().parse().unwrap(); let mut result: Vec = vec![]; let lim = (n as f64).sqrt() as usize; for i in 2..=lim { while n % i == 0 { result.push(i); n /= i; } if result.len() > 1 { println!("YES"); return; } } println!("NO"); }