Task: Program Execution
Input (English): 2, 10, ['q', 'X', '1329', 'Z', '8835', 'm', '6333', '2863', 'U', '963', '7057', 'p', '7007']
Output (English): 369U36823336m5388Z9231X