Task: Program Execution
Input (English): 3419, A, V, h, 1491, 49, a, v, M, 9657, 4303, r
Output (English): 3419, 1, 22, 8, 1491, 49, 1, 22, 13, 9657, 4303, 18