Task: Program Execution
Input (English): 3, 5, ['2673', 'B', '6499', '8181', '5217']
Output (English): 19897