Task: Program Execution
Input (English): D, P, 9785, D, X, 6857, 6313, j, f, 3955, C, 8111, K, f, 4599, m, 779, n, 1383, 4623
Output (English): 4, 16, 9785, 4, 24, 6857, 6313, 10, 6, 3955, 3, 8111, 11, 6, 4599, 13, 779, 14, 1383, 4623