import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long n = sc.nextLong(); System.out.println(PrimeFact(n)>=1?"YES":"NO"); } static int PrimeFact (long n) { double sqrt = Math.sqrt(n); int total = 0; for (int i=2; i<=sqrt; i++) { boolean b = false; while (n%i==0) { n /= i; b = true; } if (b==true) {total++;} } return total; } }