Task: Program Execution
Input (English): 8745, M, P
Output (English): 8745