Task: Program Execution
Input (English): 5, 7, ['8771', 'U', '3029', '8195', '7423', '8579', '2677']
Output (English): 267785797423