package yukicoder; import java.util.Scanner; public class Main { public static void main(String[] args) { int n = new Scanner(System.in).nextInt(); int rootN = (int)Math.pow(n, (double)('b' - 'a') / (double)('c' - 'a')); boolean res = false; for(int i = 'c' - 'a'; i <= rootN; i++) { if(n % i == 'a' - 'a') { res = true; break; } } if(n == 'b' - 'a') { System.out.println("NO"); return; } System.out.println(res ? "NO" : "YES"); } }