Task: Program Execution
Input (English): 2, 5, ['q', '6959', 'q', '8491', 'i']
Output (English): i, 8491, q, 6959