Task: Program Execution
Input (English): 4, 7, ['5125', 'A', '8507', '689', '8497', '4651', '4669']
Output (English): 18506