Task: Program Execution
Input (English): 3, 3, ['J', 'i', '4125', 'q', 'M', 'h', 'k', '1459', '4081', '4139', '2001', '2845']
Output (English): 4125