Task: Program Execution
Input (English): M, 7525, V, Z, I, 8509, 1129, c, 1865, 6523, 4877, B, 7769, 2313, D, 4671, 473, w
Output (English): 13, 7525, 22, 26, 9, 8509, 1129, 3, 1865, 6523, 4877, 2, 7769, 2313, 4, 4671, 473, 23