N = int(input()) if (N + 1) // 2 % 2 == 0 and (N + 1) // 2 > 2 and N // 2 % 2 == 0 and N // 2 > 2: print("Yes") else: print("No")