Task: Program Execution
Input (English): 5, ['2607', '3843', 'B', '7907', '5161', '2545', 'U', 'F', '5055', 'p']
Output (English): 2607, 3843, B, 7907, 5161