Task: Program Execution
Input (English): 6, 11, ['w', 'L', '8105', '4969', '9235', '4869', 'R', '1579', '2101', '1879', 'a', '8471']
Output (English): a, 1879, 2101, 1579, R, 4869