Task: Program Execution
Input (English): [12, 51, -37, 30, 87, -77, 12]
Output (English): 164