import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = 92827854153327L;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); for(long i=3;i<=M; i+=2){ while(N%i==0){ c++; N/=i; } if(c>=3){ System.out.println("YES"); return; } } if(N>1){ c++; } if(c>=3){ System.out.println("YES"); }else{ System.out.println("NO"); } } }