n = int(input()) def is_prime(n): i = 2 while i * i <=n: if n % i == 0: return "YES" i += 1 return "NO" print(is_prime(n))