Task: Program Execution
Input (English): [[23, -30, 50], [22, -46, -19], [37, 50, -18, 31], [37, 14, -21, 44, -9], [30, 41]]
Output (English): [23, -19, 1147, 6993, 41]