Task: Program Execution
Input (English): 2, 8, ['9659', 'g', 'E', '67', 'l', 'd', '9951', 'V', 's', '5121', '8791', '647', '5213', 'J']
Output (English): 10018