N = int(input()) if N <= 6: print("No") exit() if N%2 == 1: N-=7 else: N-=8 if N%8 == 0: print("Yes") else: print("No")