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