Task: Program Execution
Input (English): 3, 10, ['E', 'U', '1591', '245', 'B', 'M', '229', 'y', 'Z', '4815', 'R']
Output (English): 5184Zy922MB5421951