Task: Program Execution
Input (English): [[-40, -1, -31, -24, 22], [15, -16, -14, 27, 49], [10, -36, -27], [16, -30, -31]]
Output (English): [31, 19845, -27, -31]