Task: Program Execution
Input (English): 9067, 7973, R, T, 7637, 1825, 7761, 4249, W, D, R, 9387, M
Output (English): 7