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