P = int(input()) if P % 4 == 1: print ("Yes") else: print ("No")