Task: Program Execution
Input (English): 3, ['6707', '2971', '3573', '1001', 'A', 'M']
Output (English): 6707, 2971, 3573