Task: Program Execution
Input (English): 3, 6, ['1997', 'U', '5175', '2473', 'A', 'd', 'S', 's', '8861', 'J']
Output (English): d, A, 2473, 5175