Task: Program Execution
Input (English): [[-7, 38, -39], [-13, -40], [29, -50, -31, 30]]
Output (English): [10374, 520, 1348500]