p = int(input()) print('Yes' if p == 2 or p % 4 == 1 else 'No')