Task: Program Execution
Input (English): M, 2971
Output (English): 13, 2971