# [Stax](https://github.com/tomtheisen/stax), 14 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)

	ù╣π¼Y♣w♪∞•¬╟:"

[Run and debug it](https://staxlang.xyz/#p=97b9e3ac5905770dec07aac73a22&i=[0]%0A[3+3+3+2+2+2+1+1+1]%0A[3+3+2+2+1+1]%0A[3+3+2]%0A[8+1+1+1+1+1+1+1+1]%0A[1+1+1+1]%0A[1+1+1]%0A[9+5+4]&a=1&m=2)

For empty inputs, this program takes `[0]` instead, as allowed by a clarifying comment.