N = int(input()) if N%8 == 0 or N >= 8 and N%8 == 4: print("Yes") else: print("No")