results = [] [m1].flat().forEach (number) -> results.push String(number).padStart(4, "0").slice(0, 3) results