Task: Program Execution
Input (English): 10, 10, ['a', '4611', '2973', '9917', '1895', '8927', 'O', '4783', '8239', '5983', '1549', '7385']
Output (English): 5983