import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long N = scan.nextLong(); scan.close(); if(N < 7) { System.out.println("NO"); }else { if(numPrime(N) >= 2) { System.out.println("YES"); }else { System.out.println("NO"); } } } public static int numPrime(long n) { int cnt = 0; for(long i = 2; i < (int)Math.sqrt(n); i++){ if(n % i == 0) { cnt ++; if(n % (i * i) == 0) { cnt ++; } } } return cnt; } }