Task: Program Execution
Input (English): 1351, 2589, R, l, W
Output (English): 3, 4, 5