Task: Program Execution
Input (English): 5017, D, c, 9653, L, b, R, 671
Output (English): D, c, L, b, R, 5017, 9653, 671