Task: Program Execution
Input (English): 3, 4, ['C', 'A', 'd', '2867']
Output (English): 2867d