Task: Program Execution
Input (English): 6, 12, ['1603', 'D', '5163', '375', 'B', 'd', 'm', 'm', 'X', '1565', '1067', '3485', '3151']
Output (English): 348510671565Xmmd