Task: Program Execution
Input (English): 4, 4, ['c', '7191', 'r', '4137', '9171', 'l', 'g', 'Q', '7893', 'M', 'W']
Output (English): 4137