Task: Program Execution
Input (English): [[-50, 27, -47, -12, -49], [25, -34, 29, -2], [-31, 32], [6, -40]]
Output (English): [62181, 725, -31, 0]