Task: Program Execution
Input (English): 4, 10, ['5071', '2837', '5071', '7511', 'Z', 'C', '8281', '4867', 'I', '5251', 'B']
Output (English): 7511, Z, C, 8281, 4867, I, 5251