Task: Program Execution
Input (English): 3, 6, ['B', '3005', 'D', '661', '7823', '3385', '2185', 'l', '4961', 'B', '2337', 'c', 's', '1105', '5427', '5117']
Output (English): 3385, 7823, 661, D