Task: Program Execution
Input (English): 2, 5, ['6487', '267', '987', 'q', 'd', '6451']
Output (English): dq789762