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<>(); public static void main(String[] args) throws IOException{ //素数が嫌い! long N = Long.parseLong(readStr()[0]); wari(N); System.out.println(ts.size() > 1 ? "YES" : "NO"); } public static void wari(long a) { int sq = (int)Math.sqrt(a); for(int i = 2;i <= sq;i++) { if(a % i == 0) { ts.add(i); ts.add((int)(a / i)); wari(a / i); break; } } } 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; } }