Task: Program Execution
Input (English): R, v, 2893, B, 4339, b, 8375, w, x, B, 2423, D
Output (English): 18, 22, 2893, 2, 4339, 2, 8375, 23, 24, 2, 2423, 4