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; do { if(N % i == 0) { res++; N /= i; }else { i += 2; } }while(i <= Math.sqrt(N)); 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; } }