Task: Program Execution
Input (English): 5, 10, ['R', 's', 'v', '6183', 'J', '6703', 'e', '6249', 'q', '8097', 'P']
Output (English): 8097, q, 6249, e, 6703, J