def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 3 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] a = int(input()) list = make_divisors(a) if len(list) > 0: print('YES') else: print('NO')