Task: Program Execution
Input (English): 1, 12, ['n', 'e', 'S', 'x', 'X', 'C', 'T', 'A', '2757', '7369', '711', 'a', 'L']
Output (English): 10837