Task: Program Execution
Input (English): [[30, -29, 40, 24, -45], [-26, 43], [19, 46, 31]]
Output (English): [1305, 43, 589]