Task: Program Execution
Input (English): [[42, 47], [-34, -46, 11, 42], [31, -3, -30, -16, 19], [-46, -36], [30, 16]]
Output (English): [47, 11, -1767, 0, 0]