Task: Program Execution
Input (English): 5, 8, ['X', 'M', '351', '9587', '2905', '5073', '667', 'k', 'k', 'N']
Output (English): 8645