Task: Program Execution
Input (English): 3, ['3507', '9485', 'D', '4821', 'd', '9035', 'a', 'd', '3071', '7413', 'Q', '5187']
Output (English): 4821, d, 9035, a, d, 3071, 7413, Q, 5187