solved problem 2123: Candy I