Task: Program Execution
Input (English): 2, 4, ['l', 'A', '1815', '65', 'O', '9729', '5249', 'J']
Output (English): 1880