Task: Program Execution
Input (English): 2, 6, ['p', 'g', 'C', '8137', 'h', 'D']
Output (English): 8137