Task: Program Execution
Input (English): B, 3001, T, 681, P, V, 8787, h, 4151, 6589, 4589
Output (English): 2, 3001, 20, 681, 16, 22, 8787, 8, 4151, 6589, 4589