Task: Program Execution
Input (English): 951, K, 9303, 3489, R
Output (English): 13743