Task: Program Execution
Input (English): [[-18, 16, 36], [-19, 19], [-33, 50, -29], [-7, 40, -34, -40, -47]]
Output (English): [0, -361, 957, 329]