Task: Program Execution
Input (English): 3, 6, ['9819', 'r', 'Q', '5497', 'i', '2637']
Output (English): Q, 5497, i, 2637