using System; class Program { public static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long upper = (long)Math.Min(Math.Sqrt(n) + 1, n - 1); int primeCount = 0; for (long i = 2; i <= Math.Sqrt(upper); i++) { if (n%i == 0) { primeCount++; } } if (primeCount >= 3) { Console.WriteLine("YES"); return; } Console.WriteLine("NO"); } }