Task: Program Execution
Input (English): 2, 18, ['Z', '8929', 'D', 'Z', '8999', '1273', '8351', '9709', '2553', 'T', 'h', 'J', '5979', '3181', 'n', '789', 'C', '1685', '931']
Output (English): 5861C987n18139795JhT35529079153837219998ZD9298