Task: Program Execution
Input (English): J, 4677, m, U, 9821, s, 7249, D, P, 9305, j, 6319, 6993, 3087, 7493, C, 9849, 7639, S, x, U, G, 1029, 9047
Output (English): 10, 4677, 13, 21, 9821, 19, 7249, 4, 16, 9305, 10, 6319, 6993, 3087, 7493, 3, 9849, 7639, 19, 24, 21, 7, 1029, 9047