Task: Program Execution
Input (English): 1543, M, 4089, c, 7977
Output (English): 13609