Task: Program Execution
Input (English): 3, ['m', 'C', '1393', '3093', '5651', 'P']
Output (English): m, 3093