using System; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); for (long i = n; i >= Math.Sqrt(n); i--) { if (n % i == 0) { for (int j = 2; j <= Math.Sqrt(i); j++) { if (i % j == 0) { Console.WriteLine("YES"); return; } } } } Console.WriteLine("NO"); } }