Task: Program Execution
Input (English): 1, 10, ['X', '5141', 'B', 'm', 't', 'j', '3387', '1657', '1431', '9329']
Output (English): 20945