Task: Program Execution
Input (English): 2, 5, ['l', '1715', 'c', '3219', '5209', '141', '8853', '4147']
Output (English): 10143