Task: Program Execution
Input (English): 3, 8, ['m', '1785', 'W', '1957', 'p', '4115', 's', '3161', 'Y', '6951', '6889']
Output (English): 3161s4115p1957W