Task: Program Execution
Input (English): 8, 8, ['5139', 'm', '7623', '2717', '943', 'X', 'K', '5817', 'B', '2093']
Output (English): 5817