Task: Program Execution
Input (English): [[6, 35], [41, -7, -2, 44], [-15, 48], [-37, 12], [47, -42, 17], [5, 33, 46, -48, -48], [-20, -40, -18, 20, -31], [-46, -2, 28]]
Output (English): [35, -287, -15, -37, 799, 165, -31, 0]