Task: Program Execution
Input (English): 3275, a, 4845, R, W, 405, 1845, 9359
Output (English): 19729