Task: Program Execution
Input (English): 3, ['Z', '1723', '723', '5351', 's', '8257', '6497', '5147', 'R']
Output (English): Z, 1723, 723