Task: Program Execution
Input (English): 2, 7, ['5731', 'm', 'W', '5389', 'N', '4987', 'c', '3871', 'T']
Output (English): mW5389N4987c