Task: Program Execution
Input (English): 5, 12, ['a', '7861', 'X', '3171', 't', 'A', 'S', '8983', 'r', '9643', 'r', 'q', '8615']
Output (English): q, r, 9643, r, 8983, S, A, t