using System; namespace No36_1{ public class Program{ public static void Main(string[] args){ var input = long.Parse(Console.ReadLine()); var tmp = input; var cnt = 0; for(long i = 2; i * i < input; i++){ while(tmp % i == 0){ tmp /= i; cnt++; if(cnt == 3) { Console.WriteLine("YES"); return; } } } Console.WriteLine("NO"); } } }