Task: Program Execution
Input (English): [[47, 12], [16, 41, -40], [-4, -47, 30, 23], [36, 0], [9, 31, 39, -31]]
Output (English): [564, -26240, 129720, 0, -337311]