Task: Program Execution
Input (English): 2, 1, ['B', 'M', 'X', 'Q', '3195', '9223', 'q', 'i', '6495', '8441']
Output (English): M, X, Q, 3195, 9223, q, i, 6495, 8441