Alice has 10 candies arranged in a row. Each of them is assigned a "yummy value":
Alice would prefer eating all of them, but her mother wants her to distribute 9 candies to her friends, and she can only eat the one left.
The mechanism to distribute the candies is as follows:
Assuming that Alice distributes the candy optimally, what is the maximum "yummy value" she can save for herself?