using System; namespace y { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); int e = (int)Math.Sqrt(n) + 1; bool f = false; for (int i = 2; i <= e; i++) { if (n % i == 0) { f = true; break; } } Console.WriteLine(f && n != 1 ? "YES" : "NO"); } } }