import java.util.Scanner; public class No44 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long soinsuu = 0; long i = 2; while(n != 1) { if(n % i == 0) { n /= i; soinsuu++; }else if(i == 2) { i++; }else { i += 2; } } if(soinsuu >= 3) { System.out.println("YES"); }else { System.out.println("NO"); } } }