Task: Program Execution
Input (English): 2, ['B', '7109', 'B', 'C', 'd', 'j']
Output (English): B, 7109