Task: Program Execution
Input (English): 9651, b, 1549, 6447, x, 3367, 9047, 4215, X, n, 6137, 6067, U, 9785, P, 4561
Output (English): 9651, 2, 1549, 6447, 24, 3367, 9047, 4215, 24, 14, 6137, 6067, 21, 9785, 16, 4561