Task: Program Execution
Input (English): 4, 4, ['6335', 'M', '9967', '8503']
Output (English): 8503