Però così ottengo:

9-10
12
14-15-16

mentre avrei bisogno di ottenere questo:

9-10
12
14-16

E' possibile farlo?