n=int(input()) t=True for i in range(3,10**5): if n%i==0: a=n/i b=i break else: t=False if t: print("YES") else: print("NO")