Task: Program Execution
Input (English): 3, 4, ['9187', 'B', '4319', '4921', '2897']
Output (English): 9240