Task: Program Execution
Input (English): 2, 12, ['K', '4201', 'Q', 'U', 'F', '2051', '3735', '401', 'q', '4969', 'g', '2255', 'd', '5927']
Output (English): 5522g9694q10453731502FUQ1024