Task: Program Execution
Input (English): 4, 4, ['x', 'B', 'M', '2375', '9021']
Output (English): 2375