using System; class Program { public static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); int count = 0; for (long i = 2; i * i <= n; i++) { while (n % i == 0) { n /= i; count++; } } if (count >= 3) { Console.WriteLine("YES"); return; } Console.WriteLine("NO"); } }