def divisorsList(n): divsList = [] for i in range(1, int(pow(n, 0.5))+1): if n % i == 0: divsList.append(i) if n // i != i: divsList.append(n//i) return sorted(divsList) N = int(input()) d = divisorsList(N) print('YES' if len(d) >= 5 else 'NO')