Task: Program Execution
Input (English): 3, 12, ['Q', 'B', 'A', 'i', 'v', '2993', '1783', 'H', '4145', '6219', 'H', 'R', 'A']
Output (English): Aiv29931783H41456219HR