Task: Program Execution
Input (English): 3, ['1563', '389', 'S', '871', 'h', 'o']
Output (English): 871, h, o