Task: Program Execution
Input (English): [[31, -34, -5], [40, 17]]
Output (English): [5270, 680]