Task: Program Execution
Input (English): 4, 8, ['2629', 'g', '377', '389', 'e', 'J', '9353', '8869', '6059', '3967', '5787', '4993', '3041', 'E', '595', '707', '7189', 'w', 'Z', 'V', 'T', '5199']
Output (English): 18611