3 deleted 51 characters in body
source | link

Brain-Flak, 524, 446, 446422 bytes

{(<((((()()()()){}){}){}<>)>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>([(((({}<{}<>>))))]()){(<{}>)<>({}[()])<>}<>({}())<>{}([{}]()()()()()){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}((((()()()){}())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}(<(()())>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}<>>){{}([()])<>(<>)}({}{}())

Try it online!Try it online!

Brain-Flak, 524, 446 bytes

{(<((((()()()()){}){}){}<>)>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>([(((({}<{}<>>))))]()){(<{}>)<>({}[()])<>}<>({}())<>{}([{}]()()()()()){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}((((()()()){}())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}(<(()())>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}<>>){{}([()])<>(<>)}({}{}())

Try it online!

Brain-Flak, 524, 446, 422 bytes

{(<((((()()()()){}){}){}<>)>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>([(((({}<{}<>>))))]()){(<{}>)<>({}[()])<>}<>({}())<>{}([{}]()()()()()){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}((((()()()){}())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}(<(()())>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}<>>)

Try it online!

2 deleted 163 characters in body
source | link

Brain-Flak, 524524, 446 bytes

{(<(((()()()()(){}){}){})(<({}<>)>)<>{({}[()])<>(({}()[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}><>)([(((({})<{}<>>))))(]())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}([{}]()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()())({}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()())({}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()()()()()(){}()())({}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}<>(<()())(<({}<>))>)<>{({}[()])<>(({}()[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}><><>>){{}([()])<>(<><><>)}({}{}())

Try it online!Try it online!

MoreUngolfed, more readable version:

Brain-Flak, 524 bytes

{((((()()()()){}){}){})(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>)((((({})))))(())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}<>(()())(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>){{}([()])(<><>)}({}{}())

Try it online!

More readable version:

Brain-Flak, 524, 446 bytes

{(<((((()()()()){}){}){}<>)>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>([(((({}<{}<>>))))]()){(<{}>)<>({}[()])<>}<>({}())<>{}([{}]()()()()()){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(((()()()()())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}((((()()()){}())){}{}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}(<(()())>)<>{({}[()])<>(({}[({})]())){{}(<({}({}))>)}{}<>}{}<>({}<{}<>>){{}([()])<>(<>)}({}{}())

Try it online!

Ungolfed, more readable version:

1
source | link

Brain-Flak, 524 bytes

{((((()()()()){}){}){})(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>)((((({})))))(())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}(()()()()()()()()()()()()()()()()()()()()())({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}}<>(()())(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>){{}([()])(<><>)}({}{}())

Try it online!

More readable version:

{((((()()()()){}){}){})(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>)((((({})))))
(())
({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}
(()()()()())
({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}
(()()()()()()()()())
({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}
(()()()()()()()()()()()()()()())
({}[{}]){(<{}>)<>({}[()])<>}<>({}())<>{}
(()()()()()()()()()()()()()()()()()()()()())
({}[{}])
{(<{}>)<>({}[()])<>}<>({}())<>{}}<>(()())(<({}<>)>)<>{({}[()])<>(({}()[({})])){{}(<({}({}))>)}{}<>}{}<>({}<{}><>){{}([()])
(<><>)}({}{}())