Task: Program Execution
Input (English): R, 4117, a, 3275, h, b, 5191, 5121, R, h, f, g, 5265, B, 1859, 4699, 667
Output (English): 1, 3, 5, 6, 9, 10, 11, 12, 14