Task: Program Execution
Input (English): 5, ['4289', '2833', '887', '701', 'P', '8211', '1677', 'X', '2187', 'd', '9293', 'K']
Output (English): 4289, 2833, 887, 701, P