w = int(input()) if w % 2 == 0 and w > 3: print("YES") else: print("NO")