import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.TreeSet; public class No36 { static TreeSet ts = new TreeSet<>(); static TreeSet prime = new TreeSet<>(); public static void main(String[] args) throws IOException{ //素数が嫌い! long N = Long.parseLong(readStr()[0]); ts.add(1l); wari(N); System.out.println(ts.size() > prime.size() + 2 ? "YES" : "NO"); } public static void wari(long a) { int sq = (int)Math.sqrt(a); ts.add(a); for(int i = 2;i <= Math.max(sq, 3);i++) { if(a % i == 0) { ts.add((long)i); prime.add((long)i); ts.add(a / i); wari(a / i); break; } if(i == sq) prime.add(a); } } 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; } }