Task: Program Execution
Input (English): O, 9911, b, 5201, g, 6991, p
Output (English): 15, 9911, 2, 5201, 7, 6991, 16