Task: Program Execution
Input (English): 3, 16, ['5101', 'C', '6417', 'I', '5515', '2395', 'S', '9745', 'm', 'X', 'L', '1065', 'l', 'w', 'X', '6387', '8765', 'T', 'V', '8997']
Output (English): 6387Xwl1065LXm9745S23955515I6417