Task: Program Execution
Input (English): 5, ['r', 'p', 'p', '4709', 'J', '1553', '9055', 'M', '1169', 'r', 'M']
Output (English): r, p, p, 4709, J