Task: Program Execution
Input (English): 6, ['5517', '5197', 'G', '2505', '9483', 'Q', '1227', 'B', 'H', 'f', '3185', '8773']
Output (English): 5517, 5197, G, 2505, 9483, Q