use std::io::Read; fn main() { let mut buf = String::new(); std::io::stdin().read_to_string(&mut buf).unwrap(); let mut n: u64 = buf.trim().parse().unwrap(); let limit: u64 = (n as f64).sqrt() as u64; let mut prime_count: usize = 0; let mut num: u64 = 2; while num <= limit { if prime_count >= 2 { println!("YES"); return; } if n % num == 0 { n /= num; prime_count += 1; } else { num += 1; } } println!("NO") }