Task: Program Execution
Input (English): 1, 4, ['D', '9689', '6769', '4975', '7057', 'C', 'Q', '5797', 'Q']
Output (English): D, 7057, Q