Algorithmic task for "ScratchMaster" | ScratchStats