Task: Program Execution
Input (English): 4, 8, ['1199', 'P', 'J', 'C', '1039', 'A', '5303', 'H', '8115', '2357']
Output (English): 6342