Task: Program Execution
Input (English): 5, 18, ['C', '8267', 'S', 'M', 'K', 'c', 'm', 'X', 'I', '1725', '1087', 'k', '2103', 'N', '7457', '213', '2675', '9637']
Output (English): 736957623127547N3012k78015271IXmcK