Task: Program Execution
Input (English): 2, 11, ['J', '2391', 'B', '521', '737', '7257', 'T', '4721', 'D', 'Y', '9121', '1133']
Output (English): 2391B5217377257T4721DY9121