Task: Program Execution
Input (English): q, 1099, 8439, G, r, 3549, W, 359, 4171, B, 4737
Output (English): 17, 1099, 8439, 7, 18, 3549, 23, 359, 4171, 2, 4737