Task: Program Execution
Input (English): D, R, 3731, W, I, 2765, h, h, f, l, 2553
Output (English): 1, 2, 4, 5, 7, 8, 9, 10