N=int(input()) sosu=set() for i in range(1,int(N**0.5)+1): if N%i==0: sosu.add(i) sosu.add(N//i) if len(sosu)>2: print("YES");exit() print("NO")