Task: Program Execution
Input (English): 6, 9, ['8347', 'b', '9653', 'h', '3709', 'X', '115', '8851', '1873', '2439', '9951', 'Q']
Output (English): 10839