Task: Program Execution
Input (English): 3, 15, ['4985', '1285', '987', '1773', 'S', 'F', '6153', 's', 'x', 'e', 'M', '5821', 'Q', '7617', '4475', 'Q', '3245']
Output (English): 57447167Q1285Mexs3516FS3771789