Task: Program Execution
Input (English): 6, 12, ['O', 'w', '3553', '5027', 'P', 'x', 'a', 'w', '5723', '4793', '5885', 'S']
Output (English): S, 5885, 4793, 5723, w, a, x