Task: Program Execution
Input (English): 3887, k, 4343, 6365, L, l, 1963, p, 5159, v, L, 9643, 2491, 4579
Output (English): 3887, 11, 4343, 6365, 12, 12, 1963, 16, 5159, 22, 12, 9643, 2491, 4579