Task: Program Execution
Input (English): 6, 12, ['i', '8343', '2093', 'j', 'm', 'J', 'I', 'd', '3871', '4013', 'J', '2403', '2365', '945', '8603', '8309']
Output (English): 3042J31041783dIJ