import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); int c=0; if(N%4==0){ if(N==4){ System.out.println("NO"); return; }else{ System.out.println("YES"); return; } }else if(N%2==0){ c=1; N/=2; } long M = (long)Math.sqrt(N);System.out.println(M); for(long i=3;i<=M; i+=2){ while(N%i==0){ c++; N/=i; } if(c>=3){ System.out.println("YES"); return; } } System.out.println("NO"); } }