Task: Program Execution
Input (English): [47, 29, -11, -78, 83, 39, -50, 77]
Output (English): 161