Task: Program Execution
Input (English): f, 1411, M, 9583
Output (English): 10994