Task: Program Execution
Input (English): 6, 12, ['9403', '2709', 'B', '5871', 'b', '339', '981', '4469', 'Z', '4145', 'I', '8289', 'k', '2229']
Output (English): 18223