Task: Program Execution
Input (English): 4, ['4709', 'b', '5843', 'Q', 'P', '509', '4651', 'e']
Output (English): P, 509, 4651, e