Task: Program Execution
Input (English): 1, 9, ['X', 'o', '9851', 'C', '3243', 'i', 'D', 'C', '5507', '8871']
Output (English): 18601