Task: Program Execution
Input (English): [[-12, -47, 18], [-43, 19, 3], [24, 37, 34, 13], [13, 36], [27, -50, 4, -1, -1]]
Output (English): [10152, -2451, 392496, 468, -5400]