Task: Program Execution
Input (English): 5, 11, ['Q', 'J', '2239', 'u', 'g', 'v', '9595', '7571', '9541', 'X', 'B']
Output (English): B, X, 9541, 7571, 9595, v, g