import java.util.Scanner; public class No36 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(check(sc.nextLong())?"YES":"NO"); } public static boolean check(Long n) { int count=0; if (n < 30) return false; if (n % 2 == 0) return true; for (int i = 3; i <= Math.sqrt(n); i += 2){ if (n % i == 0) count++; if(count>=3)return true; } return false; } }