a = int(input()) for i in range(3,10**9+1,2): if a%i==0: print("YES") exit() print("NO")