Task: Program Execution
Input (English): 4, 12, ['t', 'S', '4737', '867', '6683', 'O', 'v', '3615', 'k', '807', 'm', 'M', '5721', '5463', '993', 'O', 'z', 'W', 'X', '7937', 'd', '9891', '2961', '2639']
Output (English): 11972