Task: Program Execution
Input (English): 3, 3, ['5803', '1301', '175', '9989', 'a', '587', 'B', '1541', '9375']
Output (English): 175