Task: Program Execution
Input (English): S, s, x, g, 3839, 5267, 9719, 237, 9047, 3121, 5391, W, 2311, W, 7399, W, Q
Output (English): 19, 19, 24, 7, 3839, 5267, 9719, 237, 9047, 3121, 5391, 23, 2311, 23, 7399, 23, 17