Task: Program Execution
Input (English): [-40, 62, -18, 87, -7, -50, -77, 49]
Output (English): 164