Task: Program Execution
Input (English): 9161, X, 6709, B, 7257, M, w, 6141, 3213, 9111, H, q, 8887, 8445, Q, 2777
Output (English): 9161, 24, 6709, 2, 7257, 13, 23, 6141, 3213, 9111, 8, 17, 8887, 8445, 17, 2777