Task: Program Execution
Input (English): 5699, L, 2649, R, 2765, L, E, 5255, 3823, R, 8307, z
Output (English): 6