Task: Program Execution
Input (English): 2, ['Z', 'Q', 'a', 'Q', '5067', '4921', '4221']
Output (English): Z, Q