Task: Program Execution
Input (English): 4849, D, 7171, s, R
Output (English): 4849, 4, 7171, 19, 18