Task: Program Execution
Input (English): 3, 10, ['2651', 's', 'S', '5065', 'n', 'C', 's', '5927', 'q', '5121', 'D']
Output (English): S5065nCs5927q5121