Task: Program Execution
Input (English): [-40, 78, -1, 50, -83, 77, 74]
Output (English): 161