Task: Program Execution
Input (English): M, 6273, 6875, 107, n, c, F, B, P
Output (English): 13, 6273, 6875, 107, 14, 3, 6, 2, 16