Task: Program Execution
Input (English): [[31, -20, -17, 44, -45], [-31, 21, -14], [-2, 29], [37, -37], [47, -10]]
Output (English): [23715, -651, 29, -1369, 47]