n = int(input()) print("Yes" if n>4 and n%8 in {0,7} else "No")