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