Task: Program Execution
Input (English): 4, 5, ['1069', '5265', '349', '1111', '8939', '2645', '1783', '3819', 'U', '5327', '8503', '7829', 'M', 'V', 'H', '6043', 'C', '2561', 'T', '7305', '147', '6099', '4261', '4877']
Output (English): 10050