Task: Program Execution
Input (English): 7, ['K', '5109', '8849', '4853', 'm', 'l', '1633', '847', 'X', '3351', '8253', 'K', '2489', 'C']
Output (English): 847, X, 3351, 8253, K, 2489, C