import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scan = new Scanner(System.in)) { long N = scan.nextLong(); int count = 0; for(int i=2; i<=Math.sqrt(N); i++) { while(N % i == 0) { N /= i; count++; } } if(N > 1) count++; if(count>=3) { System.out.println("YES"); } else { System.out.println("NO"); } } } }