#! /usr/bin/env raku unit sub MAIN (Str $tree = "1 | 5 3 | 2 3 4 | 7 1 0 2 | 6 4 5 2 8"); say $tree.split("|")>>.words>>.min.sum;