Task: Program Execution
Input (English): q, 3261, 8121, q, f, 421, M, H, P, 833, D, 2121, x, 9965, p, U, 8175
Output (English): 17, 3261, 8121, 17, 6, 421, 13, 8, 16, 833, 4, 2121, 24, 9965, 16, 21, 8175