Task: Program Execution
Input (English): 3, ['5307', '4349', '9345', 'C', '1871', '3977']
Output (English): 5307, 4349, 9345