using System; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); int cnt = 0; for (int i = 2; i * i <= n; i++) { while (n % i == 0) { n /= i; cnt++; } } if (n != 1) cnt++; if (cnt >= 3) Console.WriteLine("YES"); else Console.WriteLine("NO"); } }