Task: Program Execution
Input (English): 3, 6, ['4251', 'C', 'q', 'L', 'D', '1849', '6613']
Output (English): q, L, D, 1849