Task: Program Execution
Input (English): 5, ['B', 'Z', '4781', '5801', 'D', '1853', 'G', '2223', '13', '5405']
Output (English): B, Z, 4781, 5801, D