import java.util.Scanner; public class No36 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(check(sc.nextLong())?"YES":"NO"); } public static boolean check(Long n) { if (n == 1) return false; if (n % 2 == 0 || n <= 2) return true; for (int i = 3; i <= n / 2; i += 2) if (n % i == 0) return true; return false; } }