Task: Program Execution
Input (English): 2, 10, ['V', 'a', 'X', '349', '7389', 'd', 'e', 'Q', '9919', 'i', '6295', '6987', 'F']
Output (English): i9919Qed7389349Xa