P = [i for i in range(10**7+1)] for i in range(2,int((10**7)**0.5)+1): for j in range(i*i,10**7+1,i): P[j]=P[i] Q = [] for i in range(2,10**7+1): if P[i]==i: Q.append(i) N = int(input()) X = N C = {} flag = 0 for q in Q: while N%q==0: if q not in C: C[q] = 0 C[q] += 1 if C[q]>1: flag = 1 N = N//q if N>1: C[N]=1 if X==1: print("NO") elif len(C)>2 or flag==1: print("YES") else: print("NO")