Task: Program Execution
Input (English): M, 4187, 8903, A
Output (English): 13090