Task: Program Execution
Input (English): 1, 10, ['Z', '7927', '8389', 'S', 'Q', 'q', 'g', 'a', '4191', 'B', '6781', '8247']
Output (English): B, 4191, a, g, q, Q, S, 8389, 7927, Z