Task: Program Execution
Input (English): H, B, 835, 8003, 9337, I, u, 9475, v, 9655, J, D, 6849, C, 9897, q, I, 7459
Output (English): 8, 2, 835, 8003, 9337, 9, 21, 9475, 22, 9655, 10, 4, 6849, 3, 9897, 17, 9, 7459