Task: Program Execution
Input (English): 3, 6, ['q', '2771', '3145', 'n', '9483', '6299', '8343', '5941', 'h']
Output (English): 3145, n, 9483, 6299