Task: Program Execution
Input (English): 10, 14, ['h', '4587', '5075', 'w', 'v', '2223', 'X', '4203', '3097', '3525', 'L', '9941', '983', '5171', 'c', 'L']
Output (English): 19620