Task: Program Execution
Input (English): [[-40, -12], [9, -39], [-21, 12, -1, 31]]
Output (English): [480, -351, 7812]