N = int(input()) if N < 7: print("No") exit() N-=7 if N%4 == 0: print("Yes") else: print("No")