def tarik_sis_semangkka(w): if w >= 4 and w % 2 == 0: return "YES" else: return "NO" # Read input w = int(input().strip()) # Output result print(tarik_sis_semangkka(w))