Task: Program Execution
Input (English): [[17, -18, 9], [-42, -12], [39, -2, 31, 14], [-16, -9, -20], [19, -30], [47, -29, -40]]
Output (English): [-18, 504, -28, 320, -30, -40]