Task: Program Execution
Input (English): 3, 4, ['d', '7651', '8639', 'q']
Output (English): q9368