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