Task: Program Execution
Input (English): [[5, 6, -46], [30, -25, -6], [20, 15, -3, 7], [-22, 29, 46, -38, -40]]
Output (English): [5, -25, -315, 29]