Task: Program Execution
Input (English): 2, 5, ['3273', '3583', 'q', '1589', 'H', 'W', 'Z', 'o', '2641', '195']
Output (English): 5172