Task: Program Execution
Input (English): q, 459, p, 43, x, g, r, 341, w
Output (English): 1, 3, 4, 5, 9