Task: Program Execution
Input (English): 3, 6, ['4115', '5591', '1643', 'H', '5407', 'L', 'G', 'J', 'V', 'j', 'B']
Output (English): 7050