N = int(input()) i = 1 S = set() while i * i <= N: if N % i == 0: S.add(i) S.add(N//i) if len(S) >= 5: print("YES") exit() i += 1 print("NO")