Task: Program Execution
Input (English): r, 6113, 2943, 6863, a, 3643, 7001, 4147, w
Output (English): 2, 3, 4, 6, 7, 8