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