Task: Program Execution
Input (English): 4, 12, ['n', 'e', '4967', 'w', '59', 'M', 'P', 'd', 'w', '6947', 'J', '5005', 'W', '2995', '329']
Output (English): 5005J6947wdPM59w