checkio task "Magic domino"