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