Task: Program Execution
Input (English): 2003, 3525, W, 4783, 3989, r, S, 1753, D, 6931, 745, b, 7771, 2675, b, i, 1449, 765, B, 1229, 869, 6285, 391, 1869
Output (English): 1, 2, 4, 5, 8, 10, 11, 13, 14, 17, 18, 20, 21, 22, 23, 24