Task: Program Execution
Input (English): 5, 5, ['a', 'V', '4185', 'N', '4565', 'B', 'I']
Output (English): 4565