Task: Program Execution
Input (English): 2, ['6949', 'Z', 'n', 'P', '9509', 'Q']
Output (English): 6949, Z