Task: Program Execution
Input (English): 10, 10, ['J', 'F', 'M', 'H', 'j', '4847', '441', 'z', '9217', '741', '5577', 'q']
Output (English): 741