Task: Program Execution
Input (English): [[27, -39, 2, 45], [-21, 30], [-22, -16], [27, -18, -37], [-40, -20]]
Output (English): [2, 30, 352, -18, 800]