Task: Program Execution
Input (English): 9317, W, 6313, A, 3789, M
Output (English): 9317, 23, 6313, 1, 3789, 13