N = int(input()) print("Yes" if N % 8 == 0 else "No")