n=int(input()) o=0;e=0 for i in range(1,n+1): if i%2==0:e+=i else:o+=i if e%4==0 and o%4==0: print("Yes") else: print("No")