N = int(input()) r = (N + 1) // 2 rr = N // 2 if r % 4 == 0 and rr % 4 == 0: print('Yes') else: print('No')