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 < 29) return false; for (int i = 3; i * i <= n; i += 1) { if (n % i == 0) count++; if (count >= 3) return true; } return false; } }