Task: Program Execution
Input (English): 9705, B, 3023, C, R
Output (English): 2, 4, 5