Task: Program Execution
Input (English): 2, ['d', '3049', 'C', 'Z']
Output (English): d, C