Task: Program Execution
Input (English): 3, 11, ['8307', '1391', '5153', '6195', 'l', '159', '7179', '8877', '3033', 'd', '9483', '5815', 'D', 'I', '4557', '9835', 'G']
Output (English): 40079