use std::collections::HashSet; fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut n: u64 = s.trim().parse().unwrap(); let mut h = HashSet::new(); for i in 2.. { if i * i > n { if n > 1 { h.insert(n); } break; } while n % i == 0 { h.insert(i); n /= i } } println!("{}", if h.len() < 3 { "Yes" } else { "No" }) }