Task: Program Execution
Input (English): 2, 6, ['8883', 'L', 'M', '4049', 'R', '8345', 'L', '7917']
Output (English): 5438R9404ML