Task: Program Execution
Input (English): 6, ['6845', '9023', '7017', '6747', 'a', '1257', 'F', '8699', 'M', '1599', '7765', 'I', '1135', 'B', '6291']
Output (English): 6845, F, 1135