During the Christmas holidays, many garlands are lit, but once it all ends and the lights have to be removed. You have to do the cleaning in the game Xmas lights puzzles, and so it does not seem boring routine work, we decided to turn it into a puzzle. The task is to clear the field of multi-colored balls, but their removal must occur according to certain rules. You can remove the entire row or column, bounded at the edges by the same color elements, but remember that you should always have a couple. If one ball hangs on the field, you lose.