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