Task: Program Execution
Input (English): r, 3647, L, 3865, 9933, c, r
Output (English): 18, 3647, 12, 3865, 9933, 3, 18