import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); long n=scanner.nextLong(); num_prime(n); if(res>=3) { System.out.println("YES"); }else { System.out.println("NO"); } } static int res=0; private static void num_prime(long n) { for (int i = 2; i * i <= n; i++) { if (n % i == 0) { res++; num_prime(n/i); return; } } } }