Task: Program Execution
Input (English): 5, 8, ['1999', 'J', 'L', 'O', 'B', '6215', '5149', '1', '9459', '8435', 'X']
Output (English): 11365