Task: Program Execution
Input (English): 5, 7, ['m', '5955', 'U', '6423', '9285', 'B', 'v', '4419', 'd', '729', 'P', '5675', '3517', 'M', '3149', '5123', 'b']
Output (English): vB5829