Task: Program Execution
Input (English): M, n, 61, B
Output (English): 13, 14, 61, 2