How to allocate hard candies fairly