Task: Program Execution
Input (English): [-2, 18, 12, -18, 0, 18, -17]
Output (English): [-3, 16, 9, -22, -5, 12, -24]