Task: Program Execution
Input (English): M, 9387, 7125, c, 1295, X, l, 9867
Output (English): 27674