import java.io.BufferedReader; import java.io.InputStreamReader; public class No036 { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); long N = Long.parseLong(br.readLine()); if (N == 1 || isPrime(N)) { System.out.println("NO"); } else { System.out.println("YES"); } } catch (Exception e) { System.err.println("Error:" + e.getMessage()); } } // エラトステネスの篩 // 素数とかわかる static boolean isPrime(long n) { if (n < 2) { return false; } else if (n == 2) { return true; } if (n % 2 == 0) { return false; } for (int i = 3; i * i <= n; i += 2) { if (n % i == 0) { return false; } } return true; } }