n=int(input()) if n>2 and n%2==0: print("YES") exit() for d in range(3,n,2): if d**2>n:break if n%d==0: print("YES") exit() print("NO")