Task: Program Execution
Input (English): 3, 6, ['4589', 'Z', '4785', '1577', '5947', 'E', '1883', 'v', '6643', 'T', 'M', '3319', '6783']
Output (English): 4785, 1577, 5947, E