Task: Program Execution
Input (English): [[-49, 2, 10], [-8, 18, -35], [0, 21, -23, -40], [10, 27]]
Output (English): [20, -144, 0, 10]