Task: Program Execution
Input (English): 3, ['7187', 'U', '5623', 'S', '6199', '9541']
Output (English): 7187, S