Task: Program Execution
Input (English): 8517, 391, R
Output (English): 8908