There is a similar problem here. David J Prokopetz gives some code for taking multiple coins. If you replace the coins with sticks, it can give you what you want.
There is a similar problem here. David J Prokopetz gives some code for taking multiple coins. If you replace the coins with sticks, it can give you what you want.