Task: Program Execution
Input (English): 2, 12, ['M', '4031', '9047', '5483', 'E', '4823', 'L', '9009', '7613', '3793', '9085', 'l', '6517', 'b', '9455', 'N', '2071']
Output (English): 52884