import java.util.Scanner; public class Yukicoder36 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(), cnt = 0; for (long i = 2; i < Math.sqrt(n); i++) { if (n % i == 0) cnt++; if (n % (i * i) == 0) cnt++; } if (cnt > 1) System.out.println("YES"); else System.out.println("NO"); } }