import java.util.*; public class Main { static long p = 0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); func(n); String ans = "NO"; if(p >= 3) ans = "YES"; System.out.println(ans); } public static void func(long n) { for(long i = 2; (i * i) <= n; i++) { if((n % i) == 0) { func(i); func(n / i); } } } }