Task: Program Execution
Input (English): r, 7955, 6927, P, 7203, A, 5145, D, i, G, 9261, v, W, 7291, 6855, 9719, 3251, D, 7463, 8865, 5611
Output (English): 18, 7955, 6927, 16, 7203, 1, 5145, 4, 9, 7, 9261, 22, 23, 7291, 6855, 9719, 3251, 4, 7463, 8865, 5611