fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let mut n: u64 = n.trim().parse().unwrap(); let mut count = 0; for i in 2.. { if i * i > n { break; } while n % i == 0 { n /= i; count += 1; } } if n > 1 { count += 1; } if count >= 3 { println!("YES"); } else { println!("NO"); } }