Task: Program Execution
Input (English): [[-31, -31, -18], [-31, 29, 20, 44, 8], [-48, 30, -40, 27], [47, 18, -46, -23]]
Output (English): [961, -899, 27, -1081]