Task: Program Execution
Input (English): 2, ['7831', '8915', '8389', '8331', 'f', 'T']
Output (English): 7831, 8915, 8389, 8331