Upon input
we can change brackets so as to get the rightmost bracketing
(a(((bc)d)e)(fg))h =
|
a(((((bc)d)e)(fg))h) =
|
a((((b(cd))e)(fg))h) =
|
a(((b((cd)e))(fg))h) =
|
a((b(((cd)e)(fg)))h) =
|
a(b(((cd)e)(fg))h) =
|
a(b(((cd)e)(fg))h) =
|
.....
|