Task: Program Execution
Input (English): 8297, l, 2633, 1875, 3507, 1957, D, 4771, r
Output (English): 8297, 2633, 1875, 3507, 1957, 4771