# [Vyxal](https://github.com/Vyxal/Vyxal), <s>40</s> 32 bytes
```
ẏṘ\\$꘍øm↵:IǏfL:£Nvȯ$Z¥?hL⇧\_*꘍p⁋
```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLhuo/huZhcXFxcJOqYjcO4beKGtTpJx49mTDrCo052yK8kWsKlP2hM4oenXFxfKuqYjXDigYsiLCIiLCJbXCI0MFwiXSJd) or [verify all test cases](https://vyxal.pythonanywhere.com/#WyJQIiwixpsiLCLhuo/huZhcXFxcJOqYjcO4beKGtTpJx49mTDrCo052yK8kWsKlbmhM4oenXFxfKuqYjXDigYsiLCI7wqhaJOKBi2BJbnB1dDpcXG5gcCRgXFxuT3V0cHV0OlxcbmBwyK87YFxcblxcblxcbmBqIiwiW1tcIjQwXCJdLCBbXCIgIF9fX19cIixcIlxcXFwvIDQwIFwiXSwgW1wiL3wgXCIsXCIgfCBcIixcIiB8IFwiLFwiX3xfXCJdLCBbXCIjICAjIFwiLFwiIyAgIyBcIixcIiMjIyMjXCIsXCIgICAjIFwiLFwiICAgIyBcIl0sIFtcImFiXCIsXCJjZFwiLFwiZWZcIl1dIl0=).

*-8 bytes from porting 05AB1E*