Task: Program Execution
Input (English): 4973, M, 9109, 1045, 347, B, 9041, 8585
Output (English): 4973, 13, 9109, 1045, 347, 2, 9041, 8585