Task: Program Execution
Input (English): [[-45, -11, 40], [-46, -3, 33, 42], [0, 31], [2, -30]]
Output (English): [495, -99, 31, 0]