Task: Program Execution
Input (English): 3, 4, ['X', 'C', '5959', '8631']
Output (English): 14590