Task: Program Execution
Input (English): 2, 9, ['X', 'a', '559', '9609', '5717', '6167', '77', '5337', 'M', '9455']
Output (English): 27466