import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class No36_2 { static int res = 0; public static void main(String[] args) throws IOException{ //素数が嫌い! long N = Long.parseLong(readStr()[0]); while(N % 2 == 0) { res++; N /= 2; } long i = 3l; if(res == 2 && N > 1) { res++; }else if(res < 3){ while(i <= N) { if(N % i == 0) { res++; N /= i; if(i < N) res++; }else { i += 2; if(i != N && i >= (long)Math.sqrt(N)) break; } } } System.out.println(res > 2 ? "YES" : "NO"); } public static String[] readStr() throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList list = new ArrayList<>(); do { list.add(br.readLine()); }while(br.ready()); br.close(); String[] text = new String[list.size()]; list.toArray(text); return text; } }