9

Brain-Flak, 112 108 bytes
({}[()]){((({})())<>){{}<>(({}<(({}[()])()<>)>)<>)<>{({}[()]<({}[()]<({}())>)>{(<()>)}{})}{}{}}}<>{{}}([]{})
Try it online!
How it works
Initially, the first stack will contain a positive integer n, the second stack will be empty.
We start by decrementing n as foll...