Task: Program Execution
Input (English): 4, 6, ['Z', 'S', 'U', '5121', '1839', '6971', 'g']
Output (English): 6971, 1839, 5121