Task: Program Execution
Input (English): 5, 10, ['e', '1289', '143', 'A', '7231', '3671', 'c', '9399', '4549', '9221', 'Q']
Output (English): 7231, 3671, c, 9399, 4549, 9221