using System; class No36 { static void Main() { var num = Int64.Parse(Console.ReadLine()); if (IsPrimeNumber(num)) { Console.WriteLine("NO"); return; } var ans = "NO"; var s = Math.Sqrt(num) + 1; for (long i = 2; i < s; i++) { if (num % i == 0) { if (!IsPrimeNumber(i)) { ans = "YES"; break; } } } Console.WriteLine(ans); } static bool IsPrimeNumber(long num) { if (num == 1 || num == 2) return true; var s = Math.Sqrt(num) + 1; for (long i = 2; i < s; i++) if (num % i == 0) return false; return true; } }