Task: Program Execution
Input (English): 4, ['d', 'V', 'M', 'T', 'f', 'F', 'q', '9001']
Output (English): d, f