Task: Program Execution
Input (English): [[40, 19, -24, 9, -28], [-22, 17, 27, 6], [31, 42]]
Output (English): [171, 459, 31]