Task: Program Execution
Input (English): 8933, M, S, d, W, Q
Output (English): 8933, 13, 19, 4, 23, 17