Task: Program Execution
Input (English): [[8, 9, -3], [-18, 29, -10, -15], [-22, 40, 23, -24, -25], [-40, 9, 40]]
Output (English): [-27, -435, -575, 9]