Task: Program Execution
Input (English): 2, 8, ['3651', '6881', '3701', 'M', '8543', '5995', 'q', 'A', 'S', '745']
Output (English): 25120