n = int(input()) x0 = n // 2 x1 = (n + 1) // 2 ans = x0 % 4 >= 2 and x1 % 4 == 0 print('Yes' if ans else 'No')