Task: Program Execution
Input (English): 4, 21, ['M', '809', 'A', '6617', 'L', 'w', 'A', '8121', '4325', '7259', 'P', '5867', '5721', 'p', '5015', 'G', 'Z', 't', 'w', '6469', '2721', '5469', 'D', 'I']
Output (English): 52115