Task: Program Execution
Input (English): 1, 10, ['z', '325', '4291', '709', '3287', '7039', '4649', 'r', 'r', 'Q']
Output (English): Q, r, r, 4649, 7039, 3287, 709, 4291, 325, z