Task: Program Execution
Input (English): A, 4635, 7641, 5423, 7575, 8559, 3271, 2385, R, W, 199, d, 7939, R, 5893
Output (English): 53520