Welcome to our sweet world, where everything is covered with candies of different shapes and colors. Your task is to collect them using the rule: three in a row. Swap the elements that are next to each other and build lines from them, in which there are three or more identical candies.