Task: Program Execution
Input (English): 3, 4, ['X', 'T', 'D', '6597', '1881', '9135', 'C']
Output (English): 6597D