Task: Program Execution
Input (English): 3, 5, ['8333', 'J', 'X', '8671', 'a', '6295', '5803', 'J', 'C', 'e', '2769', 'Z', 'n', '6249', '8863', '6663', 'w', 'g']
Output (English): X, J, n, g