Task: Program Execution
Input (English): 4305, Q, R, m, 8275, 6967, Y, 9469, a, w, 3261, 8655, l, g, 3403, u, 8457, 2951, 2163, 2751, 4599, R
Output (English): 4305, 17, 18, 13, 8275, 6967, 25, 9469, 1, 23, 3261, 8655, 12, 7, 3403, 21, 8457, 2951, 2163, 2751, 4599, 18