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(isPrime(N)) { System.out.println("NO"); }else { System.out.println("YES"); } } public static boolean isPrime(long n) { if (n < 2) return false; else if (n == 2) return true; else if (n % 2 == 0) return false; for (long i = 3; i < n; i += 2) { if (n % i == 0) { return false; } } return true; } }