Task: Program Execution
Input (English): 2, ['9507', 'n', 'q', 'D']
Output (English): 9507, q